Continued reformat, switch all relative imports to alias as available

Switch to pure non-expression if in next.config.mjs
This commit is contained in:
2024-12-19 17:00:50 -06:00
parent 35128ec208
commit bc04acda7b
18 changed files with 32 additions and 33 deletions

View File

@@ -6,7 +6,7 @@ import withPlaiceholder from "@plaiceholder/next";
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
* This is especially useful for Docker builds.
*/
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env/server.mjs"));
if (!process.env.SKIP_ENV_VALIDATION) await import("./src/env/server.mjs");
/**
*
@@ -38,7 +38,7 @@ const v2_redirects = [
return {
source: url,
destination: `https://undefined.behavio.rs/posts${url.slice(
nthIndex(url, "/", 4)
nthIndex(url, "/", 4),
)}`,
permanent: false,
};