Skip to content

Commit d1e0444

Browse files
committed
fix: set relative functionsDir
1 parent 813a2e2 commit d1e0444

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/utils/init/config-github.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { relative } from 'node:path'
2+
13
import type { NetlifyAPI } from '@netlify/api'
24
import { Octokit } from '@octokit/rest'
35

@@ -256,7 +258,7 @@ export const configGithub = async ({
256258
deploy_key_id: deployKey.id,
257259
base: baseDir,
258260
dir: buildDir,
259-
functions_dir: functionsDir,
261+
functions_dir: relative(config.build.base ?? command.workingDir, functionsDir),,
260262
...(buildCmd && { cmd: buildCmd }),
261263
}
262264

src/utils/init/config-manual.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { relative } from 'node:path'
2+
13
import inquirer from 'inquirer'
24

35
import { exit, log } from '../command-helpers.js'
@@ -95,7 +97,7 @@ export default async function configManual({
9597
deploy_key_id: deployKey.id,
9698
base: baseDir,
9799
dir: buildDir,
98-
functions_dir: functionsDir,
100+
functions_dir: relative(config.build.base ?? command.workingDir, functionsDir),,
99101
...(buildCmd && { cmd: buildCmd }),
100102
}
101103

0 commit comments

Comments
 (0)