Files
afilmory/be/apps/oauth-gateway/vite.config.ts
Innei 74584cd230 feat(oauth-gateway): implement multi-tenant OAuth gateway service
- Added a new OAuth gateway service to handle multi-tenant authentication callbacks.
- Implemented routing logic for provider callbacks, including tenant slug validation and host resolution.
- Introduced configuration management for environment variables and service settings.
- Created Dockerfile and package.json for service deployment and dependencies.
- Added HTML response for restricted tenant access and updated static web components accordingly.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-12 16:33:24 +08:00

29 lines
658 B
TypeScript

import { builtinModules } from 'node:module'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
const NODE_BUILT_INS = builtinModules.filter((m) => !m.startsWith('_'))
NODE_BUILT_INS.push(...NODE_BUILT_INS.map((m) => `node:${m}`))
const __dirname = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
ssr: {
noExternal: true,
},
build: {
ssr: true,
rollupOptions: {
external: NODE_BUILT_INS,
input: {
main: resolve(__dirname, 'src/index.ts'),
},
output: {
entryFileNames: 'main.js',
},
},
},
})