mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 04:22:09 +00:00
chore(examples): update nuxtjs (#6383)
* chore: update nuxtjs example * fix: remove @nuxtjs/pwa Co-authored-by: Leonardo Merlin <lmerlin@schubergphilis.com>
This commit is contained in:
8
examples/nuxtjs/.gitignore
vendored
8
examples/nuxtjs/.gitignore
vendored
@@ -80,11 +80,15 @@ dist
|
|||||||
|
|
||||||
# IDE / Editor
|
# IDE / Editor
|
||||||
.idea
|
.idea
|
||||||
.editorconfig
|
|
||||||
|
|
||||||
# Service worker
|
# Service worker
|
||||||
sw.*
|
sw.*
|
||||||
|
|
||||||
# Mac OSX
|
# macOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Vim swap files
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# Vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
README.md
|
README.md
|
||||||
|
.nuxt
|
||||||
|
node_modules
|
||||||
|
*.log
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Deploy your own Nuxt.js project with Vercel.
|
|||||||
|
|
||||||
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/main/examples/nuxtjs)
|
[](https://vercel.com/import/project?template=https://github.com/vercel/vercel/tree/main/examples/nuxtjs)
|
||||||
|
|
||||||
_Live Example: https://nuxtjs.now-examples.now.sh_
|
_Live Example: https://nuxtjs.now-examples.vercel.app/_
|
||||||
|
|
||||||
### How We Created This Example
|
### How We Created This Example
|
||||||
|
|
||||||
@@ -17,5 +17,3 @@ To get started with Nuxt.js deployed with Vercel, you can use the [Create-Nuxt-A
|
|||||||
```shell
|
```shell
|
||||||
$ npx create-nuxt-app my-app
|
$ npx create-nuxt-app my-app
|
||||||
```
|
```
|
||||||
|
|
||||||
> The only change made is to amend the output directory in `nuxt.config.js` to `"/public"`.
|
|
||||||
|
|||||||
@@ -1,44 +1,37 @@
|
|||||||
export default {
|
export default {
|
||||||
mode: 'spa',
|
// Target: https://go.nuxtjs.dev/config-target
|
||||||
/*
|
target: 'static',
|
||||||
** Headers of the page
|
|
||||||
*/
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||||
head: {
|
head: {
|
||||||
title: process.env.npm_package_name || '',
|
title: 'nuxtjs',
|
||||||
meta: [
|
meta: [
|
||||||
{ charset: 'utf-8' },
|
{ charset: 'utf-8' },
|
||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
{
|
{
|
||||||
hid: 'description',
|
hid: 'description',
|
||||||
name: 'description',
|
name: 'description',
|
||||||
content: process.env.npm_package_description || '',
|
content: 'My astonishing Nuxt.js project',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
** Customize the progress-bar color
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
||||||
*/
|
|
||||||
loading: { color: '#fff' },
|
|
||||||
/*
|
|
||||||
** Global CSS
|
|
||||||
*/
|
|
||||||
css: [],
|
css: [],
|
||||||
/*
|
|
||||||
** Plugins to load before mounting the App
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||||
*/
|
|
||||||
plugins: [],
|
plugins: [],
|
||||||
/*
|
|
||||||
** Nuxt.js modules
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||||
*/
|
components: true,
|
||||||
|
|
||||||
|
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
|
||||||
|
buildModules: [],
|
||||||
|
|
||||||
|
// Modules: https://go.nuxtjs.dev/config-modules
|
||||||
modules: [],
|
modules: [],
|
||||||
/*
|
|
||||||
** Build configuration
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||||
*/
|
build: {}
|
||||||
build: {
|
|
||||||
/*
|
|
||||||
** You can extend webpack config here
|
|
||||||
*/
|
|
||||||
extend(config, ctx) {},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,9 +10,8 @@
|
|||||||
"start": "nuxt start"
|
"start": "nuxt start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "^2.0.0"
|
"core-js": "^3.15.0",
|
||||||
|
"nuxt": "^2.15.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {}
|
||||||
"nodemon": "^2.0.7"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<a
|
<a
|
||||||
href="https://nuxtjs.org/"
|
href="https://nuxtjs.org/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
rel="noopener"
|
||||||
class="button--green"
|
class="button--green"
|
||||||
>
|
>
|
||||||
Documentation
|
Documentation
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
<a
|
<a
|
||||||
href="https://github.com/nuxt/nuxt.js"
|
href="https://github.com/nuxt/nuxt.js"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
rel="noopener"
|
||||||
class="button--grey"
|
class="button--grey"
|
||||||
>
|
>
|
||||||
GitHub
|
GitHub
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.4 KiB |
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user