mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 14:44:48 +00:00
- 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>
29 lines
658 B
TypeScript
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',
|
|
},
|
|
},
|
|
},
|
|
})
|