-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(remix-dev): write other server build output files to assetsBuildDirectory
#3841
fix(remix-dev): write other server build output files to assetsBuildDirectory
#3841
Conversation
Signed-off-by: Logan McAnsh <[email protected]> (cherry picked from commit 6ae5cdf)
🦋 Changeset detectedLatest commit: 8dea114 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
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 |
Ok, to make sure I understand, we're now writing static files to both the public directory as well as the server build directory because those static files can be accessed by both sides of the app right? I wonder if there's a way for us to determine which side of the app needs it. I'm worried that we'd have issues in serverless situations where you're limited on the amount of content you can upload 🤔 |
correct
totally a valid concern, I'll check it out edit: looks like we only get back path, contents (bytes), and text (content as string) |
Signed-off-by: Logan McAnsh <[email protected]>
Let's ask @jacob-ebey about this. I have a feeling he'd know the implications of us copying these files over better. |
Hi, is this going fix the extraneous tailwind .css files generating in |
…resource-routes-to-assetsdirectory
it will, yes, sorry about that 😬 |
…resource-routes-to-assetsdirectory
assetsBuildDirectory
assetsBuildDirectory
Just adding my concern with this one. Cloudflare workers are very limited in size, so a few assets copied to the server build directory could easily block building I think. |
valid concern, the only extra files that should be written to the build directory would be those imported in resource routes |
…resource-routes-to-assetsdirectory
Thanks @mcansh, but not 100% sure I understand that reply. If I have image files, for example, inside a resource route, will those be imported into the build directory, and will those be part of the cloud function itself, meaning it will count to a potential limit of that cloud service (ie. currently 1MB at Cloudflare)? New to Remix and new to Cloudflare Pages, so just want to understand what one can expect here. I know best practice is to use a static asset storage, so one would not want to add many image files as imports, but there can be some situations where that is needed. |
Signed-off-by: Logan McAnsh <[email protected]>
they will end up in the |
🤖 Hello there, We just published version Thanks! |
(cherry picked from commit 6ae5cdf)
Signed-off-by: Logan McAnsh [email protected]
closes #3414
closes #3415
Closes: #
Testing Strategy: