Skip to content

Commit e5ce8bb

Browse files
dominikgdummdidummConduitry
authored
fix: log no svelte config found message (#14001)
* fix: log no svelte config found message * Update packages/kit/src/core/config/index.js * Update packages/kit/src/core/config/index.js --------- Co-authored-by: Simon H <[email protected]> Co-authored-by: Conduitry <[email protected]>
1 parent ac0a87e commit e5ce8bb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/tricky-pants-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: log when no Svelte config file has been found to avoid confusion

packages/kit/src/core/config/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export async function load_config({ cwd = process.cwd() } = {}) {
6767
.filter((f) => fs.existsSync(f));
6868

6969
if (config_files.length === 0) {
70+
console.log(
71+
`No Svelte config file found in ${cwd} - using SvelteKit's default configuration without an adapter.`
72+
);
7073
return process_config({}, { cwd });
7174
}
7275
const config_file = config_files[0];

0 commit comments

Comments
 (0)