Files
dealplustech/node_modules/astro/dist/vite-plugin-astro-server/server-state.js
Kunthawat Greethong 6562a1748f fix: Fix product page syntax errors
1. Remove duplicate/broken code in product tables section
2. Fix PostCSS config for Tailwind 4
3. Add @tailwindcss/postcss dependency
4. Remove --production flag from Dockerfile (sharp required)

All fixes enable successful Docker build with favicon working.
2026-03-03 14:57:46 +07:00

39 lines
910 B
JavaScript

function createServerState() {
return {
routes: /* @__PURE__ */ new Map(),
state: "fresh"
};
}
function setRouteError(serverState, pathname, error) {
if (serverState.routes.has(pathname)) {
const routeState = serverState.routes.get(pathname);
routeState.state = "error";
routeState.error = error;
} else {
const routeState = {
state: "error",
error
};
serverState.routes.set(pathname, routeState);
}
serverState.state = "error";
serverState.error = error;
}
function setServerError(serverState, error) {
serverState.state = "error";
serverState.error = error;
}
function clearRouteError(serverState, pathname) {
if (serverState.routes.has(pathname)) {
serverState.routes.delete(pathname);
}
serverState.state = "fresh";
serverState.error = void 0;
}
export {
clearRouteError,
createServerState,
setRouteError,
setServerError
};