Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed May 4, 2022
1 parent bae5ba4 commit 75fe572
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/pages-functions-app/public/dir/asset.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<h1>An asset</h1>
</body>
</html>
13 changes: 11 additions & 2 deletions packages/wrangler/src/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ const createDeployment: CommandModule<
} else {
let name;
if (depth) {
name = join(...filepath.split(sep).slice(1));
name = filepath.split(sep).slice(1).join("/");
} else {
name = file;
}
Expand Down Expand Up @@ -1141,12 +1141,21 @@ const createDeployment: CommandModule<

const formData = new FormData();

console.log(
Object.fromEntries(
[...fileMap.entries()].map(([fileName, file]) => [
`/${fileName}`,
file.metadata.hash,
])
)
);

formData.append(
"manifest",
JSON.stringify(
Object.fromEntries(
[...fileMap.entries()].map(([fileName, file]) => [
fileName,
`/${fileName}`,
file.metadata.hash,
])
)
Expand Down

0 comments on commit 75fe572

Please sign in to comment.