Skip to content

Commit

Permalink
chore(whatislove-dev): add host to dev server wd-646 (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Jun 17, 2024
1 parent 8f917c8 commit 0e39828
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions apps/whatislove-dev/eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ let init = (config) => {
config.ignores.add(Path.PAGE.FORM)
}

// server
config.setServerOptions({
showAllHosts: true,
})

// collections
config.addCollection(`articles`, (collections) => {
return collections.getFilteredByGlob(CollectionPath.ARTICLES)
})
Expand Down Expand Up @@ -151,6 +157,7 @@ let init = (config) => {
return getShuffledItems(/** @type {unknown[]} */ (items))
})

// shortcodes
config.addNunjucksAsyncShortcode(
`inlineImage`,
/**
Expand Down
2 changes: 2 additions & 0 deletions apps/whatislove-dev/packages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ declare module '@11ty/eleventy' {

ignores: Set<string>

setServerOptions(options: Record<string, unknown>): void

addPassthroughCopy(
fileOrDir: string,
copyOptions?: Record<string, unknown>,
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e39828

Please sign in to comment.