articles page
+ + + \ No newline at end of file diff --git a/web/admin-gui/src/views/Debug.vue b/web/admin-gui/src/views/Debug.vue new file mode 100644 index 0000000..a53c4c3 --- /dev/null +++ b/web/admin-gui/src/views/Debug.vue @@ -0,0 +1,71 @@ + + + +Salut à tous
- -home page
\ No newline at end of file diff --git a/web/admin-gui/vite.config.ts b/web/admin-gui/vite.config.ts index de5cb31..11f0df9 100644 --- a/web/admin-gui/vite.config.ts +++ b/web/admin-gui/vite.config.ts @@ -1,14 +1,27 @@ import { fileURLToPath, URL } from 'node:url' - -import { defineConfig } from 'vite' +import { defineConfig, loadEnv } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ -export default defineConfig({ - plugins: [vue()], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } +export default defineConfig(({ command, mode }) => { + const env1 = loadEnv(mode, "./../../", "") + const env2 = loadEnv(mode, process.cwd(), "") + + return { + plugins: [vue()], + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + } + }, + define: { + __APP_ENV__: { + ...env1, + ...env2, + } + }, + server: { + port: env1.APP_FRONT_PORT, + } + } })