set routeStyle to next

This commit is contained in:
srgooglo 2022-03-11 01:07:25 +01:00
parent 2f01fe7291
commit 771989b7c9

View File

@ -1,14 +1,16 @@
import getConfig from "./.config.js" import getConfig from "./.config.js"
import { defineConfig } from "vite" import { defineConfig } from "vite"
import Pages from "vite-plugin-pages"
import reactRefresh from "@vitejs/plugin-react-refresh" import reactRefresh from "@vitejs/plugin-react-refresh"
import Pages from "vite-plugin-pages"
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
reactRefresh(), reactRefresh(),
Pages({ Pages({
react: true, react: true,
routeStyle: "next",
extensions: ["jsx", "tsx"], extensions: ["jsx", "tsx"],
}), }),
], ],