diff --git a/netlify.toml b/netlify.toml index c64f3f6..971bf67 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,11 @@ [build] publish = "dist" - command = "npm run build" \ No newline at end of file + command = "npm run generate" + +[build.environment] + NODE_VERSION = "20.11.1" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 diff --git a/nuxt.config.ts b/nuxt.config.ts index 1b05fc7..612fc68 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,9 +3,8 @@ import siteMetadata from "./config/site-metadata"; export default defineNuxtConfig({ // removed @nuxt/image-edge until this is fixed https://github.com/nuxt/image/issues/689 modules: ["nuxt-icon", "nuxt-svgo"], - + ssr: true, css: ["~/assets/css/fonts.css", "~/assets/css/main.css"], - postcss: { plugins: { tailwindcss: {},