Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jan 26, 2023
1 parent 9855db6 commit e16958f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/server.advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/server.directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
3 changes: 2 additions & 1 deletion packages/integrations/cloudflare/src/util.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit e16958f

Please sign in to comment.