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.
This commit is contained in:
57
example-app/nuxt.config.ts
Normal file
57
example-app/nuxt.config.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
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',
|
||||
});
|
||||
Reference in New Issue
Block a user