[ci] format

This commit is contained in:
matthewp 2023-01-26 17:45:39 +00:00 committed by fredkbot
parent 9855db676e
commit e16958f35f
4 changed files with 5 additions and 4 deletions

View file

@ -147,7 +147,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
.filter((file: string) => cloudflareSpecialFiles.indexOf(file) < 0)
.map((file: string) => `/${file}`);
for(let page of pages) {
for (let page of pages) {
staticPathList.push(prependForwardSlash(page.pathname));
}

View file

@ -2,7 +2,7 @@ import type { SSRManifest } from 'astro';
import { App } from 'astro/app';
import { getProcessEnvProxy, isNode } from './util.js';
if(!isNode) {
if (!isNode) {
process.env = getProcessEnvProxy();
}

View file

@ -2,7 +2,7 @@ import type { SSRManifest } from 'astro';
import { App } from 'astro/app';
import { getProcessEnvProxy, isNode } from './util.js';
if(!isNode) {
if (!isNode) {
process.env = getProcessEnvProxy();
}

View file

@ -1,4 +1,5 @@
export const isNode = typeof process === 'object' && Object.prototype.toString.call(process) === '[object process]';
export const isNode =
typeof process === 'object' && Object.prototype.toString.call(process) === '[object process]';
export function getProcessEnvProxy() {
return new Proxy(