seo improvements
This commit is contained in:
@@ -5,4 +5,19 @@ import tailwindcss from "@tailwindcss/vite";
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
ssr: {
|
||||
// react-router-dom's "node" export condition points at its CommonJS build,
|
||||
// so SSR would otherwise get a module whose named exports all hang off
|
||||
// `.default` — every `import { Routes } from "react-router-dom"` throws at
|
||||
// request time in dev. "module-sync" selects the ESM entry instead.
|
||||
resolve: {
|
||||
conditions: [
|
||||
"module-sync",
|
||||
"module",
|
||||
"browser",
|
||||
"development|production",
|
||||
],
|
||||
externalConditions: ["module-sync", "node", "import"],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user