Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simpler configs with defineUnlighthouseConfig() #263

Merged
merged 3 commits into from
Mar 4, 2025

Conversation

harlan-zw
Copy link
Owner

@harlan-zw harlan-zw commented Mar 3, 2025

Description

Configuring Unlighthouse is done through an unlighthouse.config.ts which is simple enough, however the types for it are quite annoying.

To try and simplify this migrate to c12 with added support for not having to import the new config util defineUnlighthouseConfig().

The below should now work with types if Unlighthouse is added globally 🤞

export default defineUnlighthouseConfig({
  site: 'harlanzw.com'
})

We still support defineConfig from unlighthouse but it's now deprecated in favour of this way.

Linked Issues

#262

Additional context

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for unlighthouse-crux-api canceled.

Name Link
🔨 Latest commit ebc4aaa
🔍 Latest deploy log https://app.netlify.com/sites/unlighthouse-crux-api/deploys/67c5f24fe64a2e00087dbb43

@harlan-zw harlan-zw merged commit 7272287 into main Mar 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant