Files
dealplustech/node_modules/astro/dist/env/runtime.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

33 lines
831 B
JavaScript

import { AstroError, AstroErrorData } from "../core/errors/index.js";
import { invalidVariablesToError } from "./errors.js";
import { getEnvFieldType, validateEnvVariable } from "./validators.js";
let _getEnv = (key) => process.env[key];
function setGetEnv(fn) {
_getEnv = fn;
_onSetGetEnv();
}
let _onSetGetEnv = () => {
};
function setOnSetGetEnv(fn) {
_onSetGetEnv = fn;
}
function getEnv(...args) {
return _getEnv(...args);
}
function createInvalidVariablesError(key, type, result) {
return new AstroError({
...AstroErrorData.EnvInvalidVariables,
message: AstroErrorData.EnvInvalidVariables.message(
invalidVariablesToError([{ key, type, errors: result.errors }])
)
});
}
export {
createInvalidVariablesError,
getEnv,
getEnvFieldType,
setGetEnv,
setOnSetGetEnv,
validateEnvVariable
};