Skip to content

Commit

Permalink
remove incompatible nuxt-netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
djay committed Nov 20, 2024
1 parent 666f749 commit ed49bf5
Show file tree
Hide file tree
Showing 4 changed files with 2,557 additions and 1,202 deletions.
67 changes: 35 additions & 32 deletions examples/nuxt-blog-starter/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import mkcert from 'vite-plugin-mkcert'

export default defineNuxtConfig({
buildModules: [
// buildModules: [
// '@aceforth/nuxt-netlify',
// ],
modules: [
'@nuxtjs/tailwindcss',
'nuxt-security',
'@aceforth/nuxt-netlify',
],
modules: [
'@nuxt/image'
],
devtools: { enabled: true },
devtools: { enabled: true },
css: ['/assets/css/main.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
// postcss: {
// plugins: {
// tailwindcss: {},
// autoprefixer: {},
// },
// },
ssr: true,
$env: {
edit: {
Expand All @@ -37,33 +37,33 @@ export default defineNuxtConfig({
crossOriginResourcePolicy: "cross-origin",
}
},
netlify: {
mergeSecurityHeaders: true,
redirects: {
from: "/_ipx/:size/https%3A//*",
to: "/_ipx/:size/https%3A/*",
status: 200
},
$env: {
edit: {
redirects: {
from: "/*",
to: "/index.html",
status: 200
}
}
}
},
// netlify: {
// mergeSecurityHeaders: true,
// redirects: {
// from: "/_ipx/:size/https%3A//*",
// to: "/_ipx/:size/https%3A/*",
// status: 200
// },
// $env: {
// edit: {
// redirects: {
// from: "/*",
// to: "/index.html",
// status: 200
// }
// }
// }
// },
image: {
provider: 'ipx',
domains: ['hydra-api.pretagov.com'],
// staticFilename: '[publicPath]/images/[name]-[hash][ext]',
// modifiers: {
// quality: 80
// },
// alias: {
// plone: "https://hydra-api.pretagov.com"
// }
alias: {
plone: "https://hydra-api.pretagov.com"
}
},
experimental: {
payloadExtraction: false
Expand Down Expand Up @@ -99,6 +99,9 @@ export default defineNuxtConfig({
key: './certs/dev.pem'
}
},
sourcemap: true,
sourcemap: {
server: true,
client: true
},
compatibilityDate: '2024-11-20'
});
Loading

0 comments on commit ed49bf5

Please sign in to comment.