webapp/app.config.ts

24 lines
626 B
TypeScript
Raw Normal View History

2024-06-24 17:50:27 +00:00
import { SolidStartInlineConfig, defineConfig } from '@solidjs/start/config'
2024-09-15 19:39:32 +00:00
import viteConfig from './vite.config'
const isVercel = Boolean(process?.env.VERCEL)
const isNetlify = Boolean(process?.env.NETLIFY)
const isBun = Boolean(process.env.BUN)
export const runtime = isNetlify ? 'netlify' : isVercel ? 'vercel_edge' : isBun ? 'bun' : 'node'
console.info(`[app.config] solid-start build for ${runtime}!`)
2024-06-28 07:47:38 +00:00
2024-06-24 17:50:27 +00:00
export default defineConfig({
2024-08-14 12:50:01 +00:00
nitro: {
timing: true
},
2024-06-25 22:52:46 +00:00
ssr: true,
2024-06-24 17:50:27 +00:00
server: {
2024-08-11 22:21:01 +00:00
preset: runtime,
port: 3000,
2024-07-13 17:15:41 +00:00
https: true
2024-06-24 17:50:27 +00:00
},
2024-06-25 22:52:46 +00:00
devOverlay: true,
2024-09-12 06:56:53 +00:00
vite: viteConfig
2024-06-24 17:50:27 +00:00
} as SolidStartInlineConfig)