Enrypase
defineConfig import.meta.dev
Hi Everybody!
I need to archive a (theoretically) easy thing.
In my defineConfig inside of app.config.ts, I need to resolve a variable based on if I'm running the server with bun run dev or with bun start.
The problem is that, I can't find the environment variable that tells if I'm running as DEV or as PROD.
In fact import.meta.env doesn't seem to be exporting a DEV or PROD variable.
Is there any way for archiving this?
Sharing the code down here
31 replies
Firefox - PROD - CORS Missing Allow Origin
Hi everybody,
I have a webapp that uses solid start.
Everything works fine with Brave browser, but testing it with Firefox every fetch request fails because of "CORS Missing Allow Origin". (Only on production environment, in development it works fine with every browser)
I searched a bit here on discord and on google.
But I couldn't find anything.
Any suggestion?
1 replies
"default" is not exported by "src/entry-client.tsx"
Hi everybody,
I've noticed the following warning during build time in my project.
I tried to create a new project from scratch with > solid start > typescript > tailwindcss, and I was that this warning still persists.
I've tried to google it but nothing was found.
📦 Compiling client router...
vinxi building router client in client mode
vite v5.3.3 building for production...
virtual:$vinxi/handler/client (1:101): "default" is not exported by "src/entry-client.tsx", imported by "virtual:$vinxi/handler/client"
9 replies
Cannot read properties of undefined @ router normalizePath
Hi!
My issue is the one described up here in the title.
The function that throws it is @solidjs > router > dist > utils.js > normalizePath.
I temporarely patched it going from this:
To this:
(Simply adding a '?' before .replace)
The structure of my webapp (where this issue happens) is the following:
=> Layout: (logged).tsx
=> And the page where the issue happens: index.tsx:
Am I doing something wrong?
Thanks : )
8 replies