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

DS-752 Remove ssr-server and all related code (Part 1) #2464

Merged
merged 1 commit into from Mar 30, 2022

Conversation

danielamorse
Copy link
Collaborator

Jira

https://pegadigitalit.atlassian.net/browse/DS-752

Summary

Remove ssr-server and all other experimental SSR code.

Details

SSR was an experiment to pass HTML to a back-end service and get back rendered web component HTML. It mostly worked but was never used and isn't needed going forward. We're removing it as part of repo clean up.

How to test

  • Review code changes
  • Twig continues to render as expected (doesn't touch any normal Twig rendering)
  • Travis builds as expected

@danielamorse danielamorse changed the title DS-752 Remove ssr-server and all related code DS-752 Remove ssr-server and all related code (Part 1) Mar 29, 2022
@github-actions github-actions bot added the type: feature List this PR in the 'Features' section of the release notes. label Mar 29, 2022
Copy link
Collaborator

@remydenton remydenton left a comment

Choose a reason for hiding this comment

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

Does the fact that I love seeing deleted code mean I'm getting old? I'll just tell myself it's the fact that the deleted code had incorrect comments and logic bugs. In any case, 😍 .

The code changes make sense to me, and it looks like the build is passing, approved.

@@ -31,7 +31,6 @@ async function getDefaultConfig() {
proxyHostname: configSchema.properties.proxyHostname.default,
proxyHeader: configSchema.properties.proxyHeader.default,
ip,
enableSSR: configSchema.properties.enableSSR.default,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fun fact, there was no default defined in the schema. I guess it happened to work because it defaulted to something false-y 🤷 .

@@ -125,9 +125,6 @@ program
config.prod =
typeof program.prod === 'undefined' ? config.prod : program.prod;

// automatically set enableSSR to true in prod mode and false in dev mode, unless manually set.
config.enableSSR = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The comment must be inaccurate? Looks to me like it's disabled in both prod and dev modes...

Copy link
Collaborator

@cjwhitedev cjwhitedev left a comment

Choose a reason for hiding this comment

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

🔪

@danielamorse danielamorse merged commit 5b843e4 into master Mar 30, 2022
@danielamorse danielamorse deleted the feature/DS-752-remove-ssr-server branch March 30, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature List this PR in the 'Features' section of the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants