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

Tf/test window env #1105

Closed
wants to merge 4 commits into from
Closed

Tf/test window env #1105

wants to merge 4 commits into from

Conversation

tfolbrecht
Copy link

@skeptrunedev
Here's one way of doing what we wanted without rebuilding with vite on a user's machine

it exposes variables by setting them in the window object and using them with an or in solid

node:18 does the building
nginx:1.25.4-alpine-slim is the runtime

The multi-stage build gets rid of node dependencies and extra steps.

The runetime container is 12.3MB with 1.2kb of it being the dist code

Note

needs nginx config and redirect rules
Not sure of behavior if VITE environment variables are also specified

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.

1 participant