[ci] format
This commit is contained in:
parent
008f7647c4
commit
306649c5a4
2 changed files with 8 additions and 9 deletions
|
@ -130,7 +130,6 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
||||||
`[@astrojs/deno] Otherwise, this adapter is not required to deploy a static site to Deno.`
|
`[@astrojs/deno] Otherwise, this adapter is not required to deploy a static site to Deno.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
'astro:build:setup': ({ vite, target }) => {
|
'astro:build:setup': ({ vite, target }) => {
|
||||||
if (target === 'server') {
|
if (target === 'server') {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { AstroAdapter, AstroConfig, AstroIntegration, RouteData } from 'astro';
|
import type { AstroAdapter, AstroConfig, AstroIntegration, RouteData } from 'astro';
|
||||||
import { extname, join } from 'node:path';
|
|
||||||
import { writeFile } from 'node:fs/promises';
|
import { writeFile } from 'node:fs/promises';
|
||||||
|
import { extname, join } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { generateEdgeMiddleware } from './middleware.js';
|
import { generateEdgeMiddleware } from './middleware.js';
|
||||||
import type { Args } from './netlify-functions.js';
|
import type { Args } from './netlify-functions.js';
|
||||||
|
@ -87,13 +87,13 @@ function netlifyFunctions({
|
||||||
},
|
},
|
||||||
'astro:build:done': async ({ routes, dir }) => {
|
'astro:build:done': async ({ routes, dir }) => {
|
||||||
const functionsConfig = {
|
const functionsConfig = {
|
||||||
version: 1,
|
version: 1,
|
||||||
config: {
|
config: {
|
||||||
nodeModuleFormat: "esm"
|
nodeModuleFormat: 'esm',
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
const functionsConfigPath = join(fileURLToPath(_config.build.server), "entry.json")
|
const functionsConfigPath = join(fileURLToPath(_config.build.server), 'entry.json');
|
||||||
await writeFile(functionsConfigPath, JSON.stringify(functionsConfig))
|
await writeFile(functionsConfigPath, JSON.stringify(functionsConfig));
|
||||||
|
|
||||||
const type = builders ? 'builders' : 'functions';
|
const type = builders ? 'builders' : 'functions';
|
||||||
const kind = type ?? 'functions';
|
const kind = type ?? 'functions';
|
||||||
|
|
Loading…
Add table
Reference in a new issue