Update deps & add docker

This commit is contained in:
Sonny
2023-02-08 16:49:49 +01:00
parent ca7f8a5d9d
commit 1110734394
12 changed files with 2479 additions and 2103 deletions

View File

@@ -1,33 +1,3 @@
// const NEXT_PUBLIC_PREFIX = 'NEXT_PUBLIC_';
// const getEnvironmentVariable = (environmentVariable: string = ''): string => {
// if (!environmentVariable.startsWith(NEXT_PUBLIC_PREFIX)) {
// throw new Error(
// `Env var must start with "${NEXT_PUBLIC_PREFIX}": ${environmentVariable}`
// );
// }
// const envVarObject = Object
// .entries(process.env)
// .map(([key, value]) => ({ name: key, value }))
// .find((env) => {
// console.log(env.name === environmentVariable);
// return env.name === environmentVariable;
// });
// console.log('envVarObject', envVarObject, process.env.NEXT_PUBLIC_SITE_NAME)
// if (!envVarObject) {
// throw new Error(
// `Couldn't find environment variable: ${environmentVariable}`
// );
// } else {
// return envVarObject.value;
// }
// };
export const config = {
siteName: process.env.NEXT_PUBLIC_SITE_NAME // getEnvironmentVariable(NEXT_PUBLIC_PREFIX + 'SITE_NAME'),
siteName: "My Links",
};
console.log('config', config)