Skip to content

Commit

Permalink
fix: use rootDir for providers output instead of workspaceDir (ni…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and WinterYukky committed Nov 1, 2022
1 parent 1c80b20 commit 2ce251e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/presets/netlify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type { Nitro } from '../types'
export const netlify = defineNitroPreset({
extends: 'aws-lambda',
output: {
dir: '{{ workspaceDir }}/.netlify/functions-internal',
publicDir: '{{ workspaceDir }}/dist'
dir: '{{ rootDir }}/.netlify/functions-internal',
publicDir: '{{ rootDir }}/dist'
},
rollupConfig: {
output: {
Expand Down Expand Up @@ -59,8 +59,8 @@ export const netlifyEdge = defineNitroPreset({
extends: 'base-worker',
entry: '#internal/nitro/entries/netlify-edge',
output: {
serverDir: '{{ workspaceDir }}/.netlify/edge-functions',
publicDir: '{{ workspaceDir }}/dist'
serverDir: '{{ rootDir }}/.netlify/edge-functions',
publicDir: '{{ rootDir }}/dist'
},
rollupConfig: {
output: {
Expand Down
2 changes: 1 addition & 1 deletion src/presets/stormkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { defineNitroPreset } from '../preset'
export const stormkit = defineNitroPreset({
entry: '#internal/nitro/entries/stormkit',
output: {
dir: '{{ workspaceDir }}/.stormkit'
dir: '{{ rootDir }}/.stormkit'
}
})
4 changes: 2 additions & 2 deletions src/presets/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const vercel = defineNitroPreset({
extends: 'node',
entry: '#internal/nitro/entries/vercel',
output: {
dir: '{{ workspaceDir }}/.vercel/output',
dir: '{{ rootDir }}/.vercel/output',
serverDir: '{{ output.dir }}/functions/index.func',
publicDir: '{{ output.dir }}/static'
},
Expand Down Expand Up @@ -60,7 +60,7 @@ export const vercelEdge = defineNitroPreset({
extends: 'base-worker',
entry: '#internal/nitro/entries/vercel-edge',
output: {
dir: '{{ workspaceDir }}/.vercel/output',
dir: '{{ rootDir }}/.vercel/output',
serverDir: '{{ output.dir }}/functions/index.func',
publicDir: '{{ output.dir }}/static'
},
Expand Down

0 comments on commit 2ce251e

Please sign in to comment.