mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
4ac0d5d4e7
commit
c6551289ee
6 changed files with 6 additions and 7 deletions
|
@ -105,7 +105,7 @@ class AstroBuilder {
|
|||
client: new URL('./client/', this.config.outDir),
|
||||
server: new URL('./server/', this.config.outDir),
|
||||
serverEntry: 'entry.mjs',
|
||||
staticMode: undefined
|
||||
staticMode: undefined,
|
||||
};
|
||||
await runHookBuildStart({ config: this.config, buildConfig });
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ if(_start in adapter) {
|
|||
const code = chunk.code;
|
||||
chunk.code = code.replace(replaceExp, () => {
|
||||
return JSON.stringify(manifest);
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -196,7 +196,7 @@ export const AstroConfigSchema = z.object({
|
|||
export async function validateConfig(
|
||||
userConfig: any,
|
||||
root: string,
|
||||
cmd: string,
|
||||
cmd: string
|
||||
): Promise<AstroConfig> {
|
||||
const fileProtocolRoot = pathToFileURL(root + path.sep);
|
||||
// Manual deprecation checks
|
||||
|
@ -433,7 +433,7 @@ export async function resolveConfig(
|
|||
userConfig: AstroUserConfig,
|
||||
root: string,
|
||||
flags: CLIFlags = {},
|
||||
cmd: string,
|
||||
cmd: string
|
||||
): Promise<AstroConfig> {
|
||||
const mergedConfig = mergeCLIFlags(userConfig, flags, cmd);
|
||||
const validatedConfig = await validateConfig(mergedConfig, root, cmd);
|
||||
|
|
|
@ -26,7 +26,6 @@ describe('Markdown pages in SSR', () => {
|
|||
return html;
|
||||
}
|
||||
|
||||
|
||||
it('Renders markdown pages correctly', async () => {
|
||||
const html = await fetchHTML('/post');
|
||||
const $ = cheerioLoad(html);
|
||||
|
|
|
@ -37,7 +37,7 @@ export default function () {
|
|||
serverEntrypoint: '@my-ssr',
|
||||
exports: ['manifest', 'createApp'],
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export default function createIntegration(): AstroIntegration {
|
|||
hooks: {
|
||||
'astro:config:done': ({ setAdapter }) => {
|
||||
setAdapter(getAdapter());
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue