Skip to content

Fix manifest handling in SSR mode#13

Merged
timacdonald merged 1 commit into
mainfrom
fix-ssr-build
Jun 14, 2022
Merged

Fix manifest handling in SSR mode#13
timacdonald merged 1 commit into
mainfrom
fix-ssr-build

Conversation

@jessarcher
Copy link
Copy Markdown
Member

@jessarcher jessarcher commented Jun 13, 2022

The manifest augmentation added in #9 broke SSR builds because the manifest file isn't typically created in this mode.

This PR addresses this by only augmenting the manifest when the manifest is enabled for the build.

It will also now use the manifest name from the resolved config if it exists.

@jessarcher jessarcher requested a review from timacdonald June 13, 2022 05:51
Comment thread src/index.ts Outdated
@timacdonald
Copy link
Copy Markdown
Member

casually force pushing to your branch 😬

Comment thread src/index.ts
return path.join(config.publicDirectory, config.buildDirectory)
}

function resolveManifestConfig(config: ResolvedConfig): string|false
Copy link
Copy Markdown
Member

@timacdonald timacdonald Jun 14, 2022

Choose a reason for hiding this comment

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

This false return type is dedicated to @michaeldyrynda ❤️

@jessarcher
Copy link
Copy Markdown
Member Author

Changes look good!

Copy link
Copy Markdown
Member

@timacdonald timacdonald left a comment

Choose a reason for hiding this comment

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

@jessarcher I've made some tweaks to accommodate the differing manifest filename in ssr mode, when just passing true.

Would love you to re-review before we merging.

@timacdonald
Copy link
Copy Markdown
Member

haha. beat me to it.

@timacdonald timacdonald merged commit 902a2ef into main Jun 14, 2022
@jessarcher jessarcher deleted the fix-ssr-build branch June 14, 2022 01:04
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