This turns the project into a monorepo using pnpm workspaces, dramatically simplifying the build process. It also fixes a lot of bugs and just generally makes the codebase a lot cleaner.
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import { defineNuxtConfig } from "nuxt/config";
|
|
|
|
export default defineNuxtConfig({
|
|
ssr: true,
|
|
devServer: {
|
|
port: 3000,
|
|
host: '0.0.0.0'
|
|
},
|
|
vite: {
|
|
server: {
|
|
allowedHosts: true,
|
|
headers: {
|
|
'strict-transport-security': 'max-age=63072000; includeSubDomains; preload',
|
|
'x-frame-options': 'DENY',
|
|
'x-xss-protection': '1; mode=block',
|
|
'cross-origin-opener-policy': 'same-origin',
|
|
'cross-origin-embedder-policy': 'require-corp',
|
|
'access-control-allow-origin': '*',
|
|
}
|
|
},
|
|
},
|
|
modules: ['@unocss/nuxt', ['nuxt-ssr-lit', { litElementPrefix: 'impost-' }]],
|
|
|
|
nitro: {
|
|
moduleSideEffects: ["@impost/widget"],
|
|
experimental: {
|
|
wasm: true,
|
|
},
|
|
},
|
|
|
|
vue: {
|
|
compilerOptions: {
|
|
isCustomElement: (tag) => tag.startsWith('impost-'),
|
|
},
|
|
},
|
|
|
|
// typescript: {
|
|
// tsConfig: {
|
|
// compilerOptions: {
|
|
// paths: {
|
|
// "~/*": ["./app/*"],
|
|
// "~~/*": ["./*"],
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
compatibilityDate: '2025-11-05',
|
|
}); |