Skip to content

Commit

Permalink
Tried with URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrachet committed Feb 10, 2023
1 parent 717a6b4 commit 3d9cc0d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 209 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
const functionsUrl = new URL('functions', _config.root);
await fs.promises.mkdir(functionsUrl, { recursive: true });

const directoryUrl = new URL('[[path]].js', functionsUrl.href);
const directoryUrl = new URL('functions/[[path]].js', _config.root);
await fs.promises.rename(finalBuildUrl, directoryUrl.pathname);
}
},
Expand Down
104 changes: 0 additions & 104 deletions packages/integrations/cloudflare/test/fixtures/basics/[[path]].js

This file was deleted.

This file was deleted.

0 comments on commit 3d9cc0d

Please sign in to comment.