Files
impost/example-app/nuxt.config.ts
Zoe cfab3d0b8f Initial commit
Once again a weird place to commit, I have already done a lot of work, but I am just bad at using git, okay.
2025-11-17 16:12:26 +00:00

57 lines
1.5 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: 'pow-' }]],
nitro: {
moduleSideEffects: ["@impost/widget"],
experimental: {
wasm: true,
},
},
imports: {
transform: {
// only necessary in the monorepo since vite is going out to the
// source of the widget and transforming it and clobbering it.
exclude: [/impost/],
}
},
vue: {
compilerOptions: {
isCustomElement: (tag) => tag.includes('pow-'),
},
},
// typescript: {
// tsConfig: {
// compilerOptions: {
// paths: {
// "~/*": ["./app/*"],
// "~~/*": ["./*"],
// }
// }
// }
// }
compatibilityDate: '2025-11-05',
});