Skip to content

Commit

Permalink
feat(cleavr): auto detect preset
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 15, 2022
1 parent 221c747 commit d5bbdeb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions docs/content/2.deploy/providers/cleavr.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ description: 'Discover Cleavr preset for Nitro!'

**Preset:** `cleavr` ([switch to this preset](/deploy/#changing-the-deployment-preset))

::alert
**Zero Config Provider**
:br
Integration with this provider is possible with zero configuration. ([Learn More](/deploy/#zero-config-providers))
::

Nitro provides a built-in preset to generate output format compatible with [Cleavr.io](https://cleavr.io/).

## Set up your web app
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"serve-placeholder": "^2.0.1",
"serve-static": "^1.15.0",
"source-map-support": "^0.5.21",
"std-env": "^3.2.1",
"std-env": "^3.3.0",
"ufo": "^0.8.5",
"unenv": "^0.6.2",
"unimport": "^0.6.8",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const autodetectableProviders = {
cloudflare_pages: 'cloudflare_pages',
netlify: 'netlify',
stormkit: 'stormkit',
vercel: 'vercel'
vercel: 'vercel',
cleavr: 'cleavr'
}

export function detectTarget () {
Expand Down

0 comments on commit d5bbdeb

Please sign in to comment.