mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 00:16:39 +00:00
use config file instead of env
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import axios from "axios";
|
||||
|
||||
// const baseURL = `${window.location.protocol}//${window.location.host}/api/v1`;
|
||||
|
||||
|
||||
export const api = axios.create({
|
||||
baseURL: "http://testing123.io:8081/api/v1",
|
||||
baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -12,7 +9,7 @@ export const api = axios.create({
|
||||
});
|
||||
|
||||
export const internal = axios.create({
|
||||
baseURL: "http://pangolin:3000/api/v1",
|
||||
baseURL: process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL,
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
@@ -4,49 +4,48 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 37 100% 100%;
|
||||
--foreground: 37 5% 10%;
|
||||
--card: 37 50% 100%;
|
||||
--card-foreground: 37 5% 15%;
|
||||
--popover: 37 100% 100%;
|
||||
--popover-foreground: 37 100% 10%;
|
||||
--primary: 37 8% 51%;
|
||||
--background: 37 0% 95%;
|
||||
--foreground: 37 0% 10%;
|
||||
--card: 37 0% 90%;
|
||||
--card-foreground: 37 0% 15%;
|
||||
--popover: 37 0% 95%;
|
||||
--popover-foreground: 37 95% 10%;
|
||||
--primary: 37 31% 25%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
--secondary: 37 30% 90%;
|
||||
--secondary: 37 10% 74%;
|
||||
--secondary-foreground: 0 0% 0%;
|
||||
--muted: -1 30% 95%;
|
||||
--muted-foreground: 37 5% 40%;
|
||||
--accent: -1 30% 90%;
|
||||
--accent-foreground: 37 5% 15%;
|
||||
--destructive: 0 100% 50%;
|
||||
--destructive-foreground: 37 5% 100%;
|
||||
--border: 37 30% 82%;
|
||||
--input: 37 30% 50%;
|
||||
--ring: 37 8% 51%;
|
||||
--radius: 0rem;
|
||||
--muted: -1 10% 85%;
|
||||
--muted-foreground: 37 0% 40%;
|
||||
--accent: -1 10% 80%;
|
||||
--accent-foreground: 37 0% 15%;
|
||||
--destructive: 0 50% 50%;
|
||||
--destructive-foreground: 37 0% 90%;
|
||||
--border: 37 20% 74%;
|
||||
--input: 37 20% 50%;
|
||||
--ring: 37 31% 25%;
|
||||
--radius: 0.5rem;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: 37 50% 10%;
|
||||
--foreground: 37 5% 100%;
|
||||
--card: 37 50% 10%;
|
||||
--card-foreground: 37 5% 100%;
|
||||
--popover: 37 50% 5%;
|
||||
--popover-foreground: 37 5% 100%;
|
||||
--primary: 37 8% 51%;
|
||||
--background: 37 10% 10%;
|
||||
--foreground: 37 0% 90%;
|
||||
--card: 37 0% 10%;
|
||||
--card-foreground: 37 0% 90%;
|
||||
--popover: 37 10% 5%;
|
||||
--popover-foreground: 37 0% 90%;
|
||||
--primary: 37 31% 25%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
--secondary: 37 30% 20%;
|
||||
--secondary: 37 10% 20%;
|
||||
--secondary-foreground: 0 0% 100%;
|
||||
--muted: -1 30% 25%;
|
||||
--muted-foreground: 37 5% 65%;
|
||||
--accent: -1 30% 25%;
|
||||
--accent-foreground: 37 5% 95%;
|
||||
--destructive: 0 100% 50%;
|
||||
--destructive-foreground: 37 5% 100%;
|
||||
--border: 37 30% 50%;
|
||||
--input: 37 30% 50%;
|
||||
--ring: 37 8% 51%;
|
||||
--radius: 0rem;
|
||||
--muted: -1 10% 25%;
|
||||
--muted-foreground: 37 0% 65%;
|
||||
--accent: -1 10% 25%;
|
||||
--accent-foreground: 37 0% 90%;
|
||||
--destructive: 0 50% 50%;
|
||||
--destructive-foreground: 37 0% 90%;
|
||||
--border: 37 20% 50%;
|
||||
--input: 37 20% 50%;
|
||||
--ring: 37 31% 25%;
|
||||
--radius: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,4 +57,4 @@
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user