mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(vercel): add missing node segment
This commit is contained in:
parent
c7b88defa4
commit
a6c4a7e2cd
@ -5,7 +5,7 @@ import { node } from './node'
|
||||
|
||||
export const vercel: SLSTarget = extendTarget(node, {
|
||||
targetDir: '{{ rootDir }}/.vercel_build_output',
|
||||
outName: 'functions/_nuxt/index.js',
|
||||
outName: 'functions/node/_nuxt/index.js',
|
||||
publicDir: '{{ targetDir }}/static',
|
||||
inlineChunks: false,
|
||||
generateIgnore: [
|
||||
@ -13,12 +13,12 @@ export const vercel: SLSTarget = extendTarget(node, {
|
||||
],
|
||||
hooks: {
|
||||
async done ({ targetDir }) {
|
||||
await wrtieRoutes({ targetDir })
|
||||
await writeRoutes({ targetDir })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
async function wrtieRoutes ({ targetDir }) {
|
||||
async function writeRoutes ({ targetDir }) {
|
||||
const routes = [
|
||||
{
|
||||
src: '/sw.js',
|
||||
|
Loading…
Reference in New Issue
Block a user