summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/@types/astro.ts1
-rw-r--r--packages/astro/src/core/build/static-build.ts2
-rw-r--r--packages/astro/src/core/render/dev/index.ts1
-rw-r--r--packages/astro/test/static-build.test.js2
4 files changed, 2 insertions, 4 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index 13fc013cb..d93563352 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -314,7 +314,6 @@ export interface EndpointHandler {
[method: string]: (params: any) => EndpointOutput;
}
-
/**
* Astro Renderer
* Docs: https://docs.astro.build/reference/renderer-reference/
diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts
index 1fc4765ec..e4af1f0d9 100644
--- a/packages/astro/src/core/build/static-build.ts
+++ b/packages/astro/src/core/build/static-build.ts
@@ -487,7 +487,7 @@ function getOutFolder(astroConfig: AstroConfig, pathname: string, routeType: Rou
}
function getOutFile(astroConfig: AstroConfig, outFolder: URL, pathname: string, routeType: RouteType): URL {
- switch(routeType) {
+ switch (routeType) {
case 'endpoint':
return new URL(npath.basename(pathname), outFolder);
case 'page':
diff --git a/packages/astro/src/core/render/dev/index.ts b/packages/astro/src/core/render/dev/index.ts
index b589a0896..f60aca718 100644
--- a/packages/astro/src/core/render/dev/index.ts
+++ b/packages/astro/src/core/render/dev/index.ts
@@ -91,7 +91,6 @@ export async function render(renderers: Renderer[], mod: ComponentInstance, ssrO
site: astroConfig.buildOptions.site,
});
-
if (route?.type === 'endpoint') {
return content;
}
diff --git a/packages/astro/test/static-build.test.js b/packages/astro/test/static-build.test.js
index 4ee9e9920..45a125f9b 100644
--- a/packages/astro/test/static-build.test.js
+++ b/packages/astro/test/static-build.test.js
@@ -48,7 +48,7 @@ describe('Static build', () => {
expect(content.url).to.equal('https://astro.build/');
});
- it ('Builds out async .json files', async () => {
+ it('Builds out async .json files', async () => {
const content = await fixture.readFile('/subpath/posts.json').then((text) => JSON.parse(text));
expect(Array.isArray(content)).to.equal(true);
expect(content).deep.equal([