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

fix: issues with Windows file path #85

Merged
merged 8 commits into from
Jul 16, 2022
Merged

fix: issues with Windows file path #85

merged 8 commits into from
Jul 16, 2022

Conversation

bskimball
Copy link
Contributor

@bskimball bskimball commented Jul 6, 2022

These changes are for better windows file system support.

I changed the build:server script to use "./index.js" as opposed to "/index.js"

I changed the root in the vite.config.js in the example projects to use the relative file path "./client" as windows and *nix systems file paths are different.

I changed the production file to check if it's windows and use the file path instead of the file url if it is. Windows esm loader requires file path.

bskimball added 2 commits July 5, 2022 21:13
on production builds, check if windows, if is windows do a dynamic import using the file path.
on production builds, check if windows, if is windows do a dynamic import using the file path.
@bskimball bskimball mentioned this pull request Jul 6, 2022
2 tasks
@galvez galvez changed the title Fix issues with Windows file path fix: issues with Windows file path Jul 16, 2022
@galvez
Copy link
Member

galvez commented Jul 16, 2022

LGTM, thank you.

@galvez galvez merged commit 6a56579 into fastify:dev Jul 16, 2022
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.

None yet

2 participants