Files
homefeed/frontend
Claude fd12f11cd7 Fix ADMIN_PANEL_ENABLED never being read from frontend/.env
process.env.ADMIN_PANEL_ENABLED was always undefined in the running
SvelteKit server process — Vite only injects VITE_-prefixed vars into
process.env for server-side code; plain vars in frontend/.env never reached
it, so the admin panel stayed disabled (cog hidden, /admin/* 404s) no matter
what the .env file said. Switched to SvelteKit's own $env/dynamic/private,
which reads it correctly in dev, preview, and adapter-based deployments.

Reproduced and verified the fix against a real frontend/.env file (not an
inline shell var, which is what masked this the first time).
2026-07-21 20:22:09 +00:00
..
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00
2026-07-17 10:33:20 -04:00

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project
npx sv create my-app

To recreate this project with the same configuration:

# recreate this project
npx sv@0.16.2 create --template minimal --types ts --install npm frontend

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.