[ci] format
This commit is contained in:
parent
9855db676e
commit
e16958f35f
4 changed files with 5 additions and 4 deletions
|
@ -147,7 +147,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
||||||
.filter((file: string) => cloudflareSpecialFiles.indexOf(file) < 0)
|
.filter((file: string) => cloudflareSpecialFiles.indexOf(file) < 0)
|
||||||
.map((file: string) => `/${file}`);
|
.map((file: string) => `/${file}`);
|
||||||
|
|
||||||
for(let page of pages) {
|
for (let page of pages) {
|
||||||
staticPathList.push(prependForwardSlash(page.pathname));
|
staticPathList.push(prependForwardSlash(page.pathname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { SSRManifest } from 'astro';
|
||||||
import { App } from 'astro/app';
|
import { App } from 'astro/app';
|
||||||
import { getProcessEnvProxy, isNode } from './util.js';
|
import { getProcessEnvProxy, isNode } from './util.js';
|
||||||
|
|
||||||
if(!isNode) {
|
if (!isNode) {
|
||||||
process.env = getProcessEnvProxy();
|
process.env = getProcessEnvProxy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { SSRManifest } from 'astro';
|
||||||
import { App } from 'astro/app';
|
import { App } from 'astro/app';
|
||||||
import { getProcessEnvProxy, isNode } from './util.js';
|
import { getProcessEnvProxy, isNode } from './util.js';
|
||||||
|
|
||||||
if(!isNode) {
|
if (!isNode) {
|
||||||
process.env = getProcessEnvProxy();
|
process.env = getProcessEnvProxy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
export function getProcessEnvProxy() {
|
||||||
return new Proxy(
|
return new Proxy(
|
||||||
|
|
Loading…
Add table
Reference in a new issue