File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ import { relative } from 'node:path'
2+
13import type { NetlifyAPI } from '@netlify/api'
24import { Octokit } from '@octokit/rest'
35
@@ -256,7 +258,8 @@ export const configGithub = async ({
256258 deploy_key_id : deployKey . id ,
257259 base : baseDir ,
258260 dir : buildDir ,
259- functions_dir : functionsDir ,
261+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
262+ functions_dir : relative ( config . build . base ?? command . workingDir , functionsDir ) ,
260263 ...( buildCmd && { cmd : buildCmd } ) ,
261264 }
262265
Original file line number Diff line number Diff line change 1+ import { relative } from 'node:path'
2+
13import inquirer from 'inquirer'
24
35import { exit , log } from '../command-helpers.js'
@@ -95,7 +97,8 @@ export default async function configManual({
9597 deploy_key_id : deployKey . id ,
9698 base : baseDir ,
9799 dir : buildDir ,
98- functions_dir : functionsDir ,
100+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
101+ functions_dir : relative ( config . build . base ?? command . workingDir , functionsDir ) ,
99102 ...( buildCmd && { cmd : buildCmd } ) ,
100103 }
101104
You can’t perform that action at this time.
0 commit comments