Skip to content

Commit be6e3a6

Browse files
authored
fix: include .env files in tutorial assets (#987)
fixes #690
1 parent b167c13 commit be6e3a6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

apps/svelte.dev/src/lib/server/content.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ const documents = import.meta.glob<string>('../../../content/**/*.md', {
88
import: 'default'
99
});
1010

11-
const assets = import.meta.glob<string>('../../../content/**/+assets/**', {
12-
eager: true,
13-
query: '?url',
14-
import: 'default'
15-
});
11+
const assets = import.meta.glob<string>(
12+
['../../../content/**/+assets/**', '../../../content/**/+assets/**/.env'],
13+
{
14+
eager: true,
15+
query: '?url',
16+
import: 'default'
17+
}
18+
);
1619

1720
// https://github.com/vitejs/vite/issues/17453
1821
export const index = await create_index(documents, assets, '../../../content', read);

0 commit comments

Comments
 (0)