-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Flagged SSR support #2548
Flagged SSR support #2548
Conversation
🦋 Changeset detectedLatest commit: 21e1ac8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
200da90
to
a6e9f35
Compare
} | ||
abstract render(req: any, routeData?: RouteData): Promise<string>; | ||
protected async renderURL(url: URL, routeData?: RouteData): Promise<string> { | ||
if(!routeData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Route data is always undefined
I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I keep pressing the button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was incredibly well written, mind you I was skimming but the fact the only thing that I could find was uneeded {}
and some minor readability really says something for your work.
5b0874c
to
a8c101e
Compare
a8c101e
to
670bf8c
Compare
@@ -31,6 +31,7 @@ function printHelp() { | |||
--project-root <path> Specify the path to the project root folder. | |||
--no-sitemap Disable sitemap generation (build only). | |||
--experimental-static-build A more performant build that expects assets to be define statically. | |||
--experimental-ssr Enable SSR compilation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indentation here
4067234
to
670bf8c
Compare
f06f8d3
to
0cb822b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Big fan of the refactoring here, especially renaming ssr
to render
and breaking out a few pieces to separate files
It looks like the CI tests may still be failing but I'm not 100% sure if that's just an outdated flag I'm seeing in GH. I'd say its good to merge in as long as the tests are passing 👍
* Checkpoint, basics are working * Add the `--experimental-ssr` flag * Adds the changeset * Fixes population of getStaticPaths results * Pass through the imported module * Route manifest test * Fix remaining tests * Fix remaining tests * Copy server assets over * Fix types * Allowing passing in the request to the Node version of App * Improve the example app * Gets CI to pass
* Checkpoint, basics are working * Add the `--experimental-ssr` flag * Adds the changeset * Fixes population of getStaticPaths results * Pass through the imported module * Route manifest test * Fix remaining tests * Fix remaining tests * Copy server assets over * Fix types * Allowing passing in the request to the Node version of App * Improve the example app * Gets CI to pass
Changes
--experimental-ssr
flag toastro build
which will result indist/server/
anddist/client/
directories.Testing
Going off of an example app at the moment. Tests will be added as features and APIs are refined.
Docs
Not yet, although it would be good to start adding some soon.