Compare commits

...

1 commit

Author SHA1 Message Date
Daniel Roe
4ec40db279 ci: try deploying with a netlify edge function 2023-01-11 23:33:15 +00:00

View file

@ -70,6 +70,14 @@ export default defineNuxtConfig({
'postcss-nested': {}, 'postcss-nested': {},
}, },
}, },
build: {
transpile: ['@fnando/sparkline'],
},
hooks: {
'nitro:config': function (config) {
config.alias['isomorphic-ws'] = 'unenv/runtime/mock/proxy'
},
},
runtimeConfig: { runtimeConfig: {
cloudflare: { cloudflare: {
accountId: '', accountId: '',
@ -97,6 +105,7 @@ export default defineNuxtConfig({
}, },
}, },
nitro: { nitro: {
preset: 'netlify-edge',
prerender: { prerender: {
crawlLinks: true, crawlLinks: true,
routes: ['/'], routes: ['/'],