mirror of
https://github.com/myronblair/kino-app
synced 2026-07-28 05:23:45 -05:00
Rebrand StreamHoard, strip Emergent.sh platform artifacts
- Remove .emergent/ state dir, tracked .gitconfig, @emergentbase/visual-edits dep + craco wiring, emergent.sh script/meta tags, PostHog telemetry snippet - Rename UI/docs branding Kino -> StreamHoard (README, DEPLOY.md, Navbar, Login, Register, AdminShowEpisodes, FastAPI title, health check response) - Rename docker-compose container/network names to streamhoard-* - Default admin email domain -> admin@streamhoard.local
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
const path = require("path");
|
||||
require("dotenv").config();
|
||||
|
||||
// Check if we're in development/preview mode (not production build)
|
||||
// Craco sets NODE_ENV=development for start, NODE_ENV=production for build
|
||||
const isDevServer = process.env.NODE_ENV !== "production";
|
||||
|
||||
// Environment variable overrides
|
||||
const config = {
|
||||
enableHealthCheck: process.env.ENABLE_HEALTH_CHECK === "true",
|
||||
@@ -81,20 +77,4 @@ webpackConfig.devServer = (devServerConfig) => {
|
||||
return devServerConfig;
|
||||
};
|
||||
|
||||
// Wrap with visual edits (automatically adds babel plugin, dev server, and overlay in dev mode)
|
||||
if (isDevServer) {
|
||||
try {
|
||||
const { withVisualEdits } = require("@emergentbase/visual-edits/craco");
|
||||
webpackConfig = withVisualEdits(webpackConfig);
|
||||
} catch (err) {
|
||||
if (err.code === 'MODULE_NOT_FOUND' && err.message.includes('@emergentbase/visual-edits/craco')) {
|
||||
console.warn(
|
||||
"[visual-edits] @emergentbase/visual-edits not installed — visual editing disabled."
|
||||
);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = webpackConfig;
|
||||
|
||||
Reference in New Issue
Block a user