Skip to content

Commit

Permalink
Trailing functions slash
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrachet committed Feb 12, 2023
1 parent 4786f83 commit 3cb5935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ export default function createIntegration(args?: Options): AstroIntegration {
}

if (isModeDirectory) {
const functionsUrl = new URL('functions', _config.root);
const functionsUrl = new URL('functions/', _config.root);
await fs.promises.mkdir(functionsUrl, { recursive: true });

const directoryUrl = new URL('functions/[[path]].js', _config.root);
const directoryUrl = new URL('[[path]].js', functionsUrl);
await fs.promises.rename(finalBuildUrl, directoryUrl);
}
},
Expand Down

0 comments on commit 3cb5935

Please sign in to comment.