diff --git a/farm.config.ts b/farm.config.ts deleted file mode 100644 index dc26d53..0000000 --- a/farm.config.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { defineConfig } from "@farmfe/core"; -import farmPostcssPlugin from "@farmfe/js-plugin-postcss"; -import path from "path"; - -export default defineConfig((cfg) => { - let env: object | undefined; - - if (cfg.mode !== "development") { - env = { - SD_BACKEND_URL: process.env.SD_BACKEND_URL, - SD_CLIENT_ID: process.env.SD_CLIENT_ID, - SD_AUTHORITY_URL: process.env.SD_AUTHORITY_URL, - }; - - for (const [key, value] of Object.entries(env)) { - if (!value) { - throw new Error(`Environment variable ${key} is missing or empty.`); - } - } - } - - return { - plugins: ["@farmfe/plugin-react", farmPostcssPlugin()], - compilation: { - resolve: { - alias: { - "~/": path.join(process.cwd(), "src"), - } - }, - define: env, - }, - envPrefix: "SD_", - server: { - proxy: { - "/auth": { - target: "http://localhost:8000", - changeOrigin: true - }, - "/v2": { - // target: "http://localhost:8000", - target: "https://api.test.status.otc-service.com", - changeOrigin: true - } - } - } - }; -}); diff --git a/index.html b/index.html index 4792407..b5fed46 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,6 @@
- +