Hi, I have a vite/vue project and I need to use ssr for the public part, for indexing. Except that I can't configure it correctly with vike, should I do something else?
here is the error when launching the front:
npm run dev
reseau@1.0.0 dev
vite
09:40:31 [vike][config][Wrong Usage] /src/pages/+config.js sets an unknown config vue
09:40:31 [vike][Warning] Update to the new V1 design to get rid of Vite's warning: The glob option "as" has been deprecated in favour of "query". See https://vike.dev/migration/v1-design for how to migrate.
The glob option "as" has been deprecated in favour of "query". Please update as: 'extractExportNames'
to query: '?extractExportNames'
.
VITE v5.4.4 ready in 660 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
and my "+config.js":
export default {
vue: {
hydrationCanBeAborted: true
},
clientRouting: true,
prerender: {
partial: true
},
meta: {
title: {
env: { server: true, client: true },
value: (pageContext) => *** - ${pageContext.route}
},
description: {
env: { server: true, client: true },
value: 'Site ***'
}
}
}
my vite.config.json :
i added :
import vike from 'vike/plugin'
and
plugins: [
vue(),
vuetify({ autoImport: true }),
vike()
],
i tried to use "vike-vue" following the doc but same problem, or worse, is there a solution or is it better to stop using vike ?
Top comments (0)