[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),
|
client: new URL('./client/', this.config.outDir),
|
||||||
server: new URL('./server/', this.config.outDir),
|
server: new URL('./server/', this.config.outDir),
|
||||||
serverEntry: 'entry.mjs',
|
serverEntry: 'entry.mjs',
|
||||||
staticMode: undefined
|
staticMode: undefined,
|
||||||
};
|
};
|
||||||
await runHookBuildStart({ config: this.config, buildConfig });
|
await runHookBuildStart({ config: this.config, buildConfig });
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ if(_start in adapter) {
|
||||||
const code = chunk.code;
|
const code = chunk.code;
|
||||||
chunk.code = code.replace(replaceExp, () => {
|
chunk.code = code.replace(replaceExp, () => {
|
||||||
return JSON.stringify(manifest);
|
return JSON.stringify(manifest);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -196,7 +196,7 @@ export const AstroConfigSchema = z.object({
|
||||||
export async function validateConfig(
|
export async function validateConfig(
|
||||||
userConfig: any,
|
userConfig: any,
|
||||||
root: string,
|
root: string,
|
||||||
cmd: string,
|
cmd: string
|
||||||
): Promise<AstroConfig> {
|
): Promise<AstroConfig> {
|
||||||
const fileProtocolRoot = pathToFileURL(root + path.sep);
|
const fileProtocolRoot = pathToFileURL(root + path.sep);
|
||||||
// Manual deprecation checks
|
// Manual deprecation checks
|
||||||
|
@ -433,7 +433,7 @@ export async function resolveConfig(
|
||||||
userConfig: AstroUserConfig,
|
userConfig: AstroUserConfig,
|
||||||
root: string,
|
root: string,
|
||||||
flags: CLIFlags = {},
|
flags: CLIFlags = {},
|
||||||
cmd: string,
|
cmd: string
|
||||||
): Promise<AstroConfig> {
|
): Promise<AstroConfig> {
|
||||||
const mergedConfig = mergeCLIFlags(userConfig, flags, cmd);
|
const mergedConfig = mergeCLIFlags(userConfig, flags, cmd);
|
||||||
const validatedConfig = await validateConfig(mergedConfig, root, cmd);
|
const validatedConfig = await validateConfig(mergedConfig, root, cmd);
|
||||||
|
|
|
@ -26,7 +26,6 @@ describe('Markdown pages in SSR', () => {
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
it('Renders markdown pages correctly', async () => {
|
it('Renders markdown pages correctly', async () => {
|
||||||
const html = await fetchHTML('/post');
|
const html = await fetchHTML('/post');
|
||||||
const $ = cheerioLoad(html);
|
const $ = cheerioLoad(html);
|
||||||
|
|
|
@ -37,7 +37,7 @@ export default function () {
|
||||||
serverEntrypoint: '@my-ssr',
|
serverEntrypoint: '@my-ssr',
|
||||||
exports: ['manifest', 'createApp'],
|
exports: ['manifest', 'createApp'],
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default function createIntegration(): AstroIntegration {
|
||||||
hooks: {
|
hooks: {
|
||||||
'astro:config:done': ({ setAdapter }) => {
|
'astro:config:done': ({ setAdapter }) => {
|
||||||
setAdapter(getAdapter());
|
setAdapter(getAdapter());
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue