2025-07-24 16:08:17 +02:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
// base: "/KraikenLanding/",
|
|
|
|
|
plugins: [
|
|
|
|
|
vue(),
|
|
|
|
|
vueDevTools(),
|
|
|
|
|
],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2026-02-24 13:42:22 +00:00
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
|
'@harb/ui-shared': fileURLToPath(new URL('../packages/ui-shared/src', import.meta.url)),
|
2025-07-24 16:08:17 +02:00
|
|
|
},
|
|
|
|
|
},
|
2026-02-02 19:24:57 +01:00
|
|
|
server: {
|
|
|
|
|
// Allow health checks from CI containers and proxy
|
|
|
|
|
allowedHosts: ['landing', 'caddy', 'localhost', '127.0.0.1'],
|
2026-02-22 08:09:44 +00:00
|
|
|
proxy: {
|
|
|
|
|
'/api/graphql': {
|
|
|
|
|
target: process.env.VITE_PONDER_URL || 'http://ponder:42069',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
rewrite: (path) => path.replace(/^\/api\/graphql/, '/graphql'),
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-02 19:24:57 +01:00
|
|
|
},
|
2025-07-24 16:08:17 +02:00
|
|
|
})
|