Skip to content

Commit

Permalink
🐛 Skip errors in static site
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 17, 2023
1 parent dcc00b6 commit ad82cd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export const generateSite = async () => {
exec("npm run export");
mkdir("-p", "status-page/__sapper__/export");
cp("-r", "__sapper__/export/*", "status-page/__sapper__/export");
cp("-r", "../assets/*", "status-page/__sapper__/export");
try {
cp("-r", "../assets/*", "status-page/__sapper__/export");
} catch (error) {
// Ignore errors if unable to find directory
}
cd("../..");
};

0 comments on commit ad82cd5

Please sign in to comment.