mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 12:57:47 +00:00
chore: update Nuxt example (#10869)
This updates the default Nuxt example to start with a static route, plus updates dependencies with the latest version. Demo: https://nuxt-vercel-inky.vercel.app/ --------- Co-authored-by: Trek Glowacki <trek.glowacki@vercel.com>
This commit is contained in:
5
.changeset/three-weeks-care.md
Normal file
5
.changeset/three-weeks-care.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"examples": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: update Nuxt example
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<NuxtWelcome />
|
<NuxtWelcome />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
export default {
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
nitro: {
|
export default defineNuxtConfig({
|
||||||
preset: 'vercel-edge',
|
devtools: { enabled: true },
|
||||||
|
routeRules: {
|
||||||
|
// prerender index route by default
|
||||||
|
'/': { prerender: true },
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
@@ -8,6 +9,9 @@
|
|||||||
"postinstall": "nuxt prepare"
|
"postinstall": "nuxt prepare"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nuxt": "^3.0.0"
|
"@nuxt/devtools": "^1.0.3",
|
||||||
|
"nuxt": "^3.8.2",
|
||||||
|
"vue": "^3.3.8",
|
||||||
|
"vue-router": "^4.2.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6100
examples/nuxtjs/pnpm-lock.yaml
generated
Normal file
6100
examples/nuxtjs/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
BIN
examples/nuxtjs/public/favicon.ico
Normal file
BIN
examples/nuxtjs/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
3
examples/nuxtjs/server/tsconfig.json
Normal file
3
examples/nuxtjs/server/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "../.nuxt/tsconfig.server.json"
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
// https://v3.nuxtjs.org/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json"
|
"extends": "./.nuxt/tsconfig.json"
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user