Skip to content

Commit

Permalink
build: try making static chunk names to fix upload #83
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Feb 27, 2024
1 parent a44f8e4 commit 17c3cb7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,36 +147,36 @@ jobs:
echo "Generating Manifest..."
# ARDRIVE_MANIFEST_RESULTS=$(\
# ardrive create-manifest \
# --turbo \
# -f "${FOLDER_ID}" \
# -w "${WALLET}"
# )
ARDRIVE_MANIFEST_RESULTS=$(\
ardrive create-manifest \
--turbo \
-f "${FOLDER_ID}" \
-w "${WALLET}"
)
echo "##### CUSTOM MANIFEST SHIM #####"
# echo "##### CUSTOM MANIFEST SHIM #####"
ardrive create-manifest \
--turbo \
-f "${FOLDER_ID}" \
-w "${WALLET}" \
--dry-run \
| jq '{manifest}.manifest' > ${LOCAL_MANIFEST}
# ardrive create-manifest \
# --turbo \
# -f "${FOLDER_ID}" \
# -w "${WALLET}" \
# --dry-run \
# | jq '{manifest}.manifest' > ${LOCAL_MANIFEST}
npm run shim-manifest
# npm run shim-manifest
echo "Uploading shimmed manifest..."
# echo "Uploading shimmed manifest..."
ARDRIVE_MANIFEST_RESULTS=$(\
ardrive upload-file \
--turbo \
--parent-folder-id "${FOLDER_ID}" \
--local-path ${LOCAL_MANIFEST} \
--content-type "application/x.arweave-manifest+json" \
-w "${WALLET}"
)
# ARDRIVE_MANIFEST_RESULTS=$(\
# ardrive upload-file \
# --turbo \
# --parent-folder-id "${FOLDER_ID}" \
# --local-path ${LOCAL_MANIFEST} \
# --content-type "application/x.arweave-manifest+json" \
# -w "${WALLET}"
# )
echo "##### END CUSTOM MANIFEST SHIM #####"
# echo "##### END CUSTOM MANIFEST SHIM #####"
echo "${ARDRIVE_MANIFEST_RESULTS}"
Expand Down
13 changes: 13 additions & 0 deletions src/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ const config = defineConfig({
i18n: languages[pageData.frontmatter.locale || "en"],
};
},

/**
* Needed for shim for
*/
vite: {
build: {
rollupOptions: {
output: {
chunkFileNames: "assets/chunks/[name].js",
},
},
},
},
});

export default config;

0 comments on commit 17c3cb7

Please sign in to comment.