Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): 7.0.3 #2915

Merged
merged 20 commits into from
Sep 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dont fail if there isnt an index.html
  • Loading branch information
jamesdaniels committed Sep 1, 2021
commit 0271590b9e99e293c108629c5e10569e979cd708
10 changes: 6 additions & 4 deletions src/schematics/deploy/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ export const deployToFunction = async (
defaultFunction(serverOut, options)
);

fsHost.renameSync(
join(newClientPath, 'index.html'),
join(newClientPath, 'index.original.html')
);
try {
fsHost.renameSync(
join(newClientPath, 'index.html'),
join(newClientPath, 'index.original.html')
);
} catch (e) { }

if (options.preview) {
const port = 5000; // TODO make this configurable
Expand Down