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(ssr): delete root index.html #11677

Closed
wants to merge 2 commits into from
Closed

chore(ssr): delete root index.html #11677

wants to merge 2 commits into from

Conversation

LeoMcA
Copy link
Member

@LeoMcA LeoMcA commented Aug 23, 2024

Summary

split from #11672

https://mozilla-hub.atlassian.net/browse/MP-1456

Problem

We want to test deleting the root index.html independently to catch any issues easily/early.

Solution

Delete client/build/index.html after we're done with it, fix some tests.


How did you test this change?

  • yarn && yarn build:client
  • ls client/build/index.html <- it's there!
  • yarn build:ssr
  • ls client/build/index.html <- it's no longer there!

Will also deploy to stage.

@LeoMcA LeoMcA requested review from mdn-bot and a team as code owners August 23, 2024 12:21
@LeoMcA
Copy link
Member Author

LeoMcA commented Aug 23, 2024

Deployed to staging

@caugner caugner self-assigned this Sep 3, 2024
ssr/.gitignore Outdated Show resolved Hide resolved
ssr/rm-index.js Outdated Show resolved Hide resolved
ssr/rm-index.js Outdated Show resolved Hide resolved
@@ -25,7 +25,7 @@
"build:docs": "cross-env NODE_ENV=production NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node build/cli.ts -n",
"build:glean": "cd client && cross-env VIRTUAL_ENV=venv glean translate src/telemetry/metrics.yaml src/telemetry/pings.yaml -f typescript -o src/telemetry/generated",
"build:prepare": "yarn build:client && yarn build:ssr && yarn tool popularities && yarn tool spas && yarn tool gather-git-history && yarn tool build-robots-txt",
"build:ssr": "cross-env NODE_ENV=production NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node ssr/prepare.ts && cd ssr && webpack --mode=production",
"build:ssr": "cross-env NODE_ENV=production NODE_OPTIONS='--no-warnings=ExperimentalWarning --loader ts-node/esm' node ssr/prepare.ts && cd ssr && webpack --mode=production && node rm-index.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this prevents yarn build:ssr from being run multiple times, but as I understand #11672 this shouldn't be an issue once the template moves into ssr/render.

@LeoMcA
Copy link
Member Author

LeoMcA commented Sep 9, 2024

Happy with results on stage, closing.

@LeoMcA LeoMcA closed this Sep 9, 2024
@LeoMcA LeoMcA deleted the rm-root-index branch September 9, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants