Skip to content

Commit

Permalink
feat: use JS for the Juno config (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Nov 15, 2024
1 parent f412ebb commit c91becf
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 24 deletions.
27 changes: 27 additions & 0 deletions juno.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defineConfig } from "@junobuild/config";

/** @type {import('@junobuild/config').JunoConfig} */
export default defineConfig({
satellite: {
satelliteId: "fmkjf-bqaaa-aaaal-acpza-cai",
source: "src",
storage: {
headers: [
{
source: "**/*.js",
headers: [["Cache-Control", "max-age=31536000"]],
},
{
source: "**/*.css",
headers: [["Cache-Control", "max-age=31536000"]],
},
{
source: "**/releases/**/*",
headers: [["Content-Type", "application/octet-stream"]],
},
],
},
encoding: [["**/releases/*.gz", "identity"]],
gzip: false,
},
});
24 changes: 0 additions & 24 deletions juno.json

This file was deleted.

8 changes: 8 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"qr-creator": "^1.0.0"
},
"devDependencies": {
"@junobuild/config": "^0.0.16",
"prettier": "^3.0.0"
}
}

0 comments on commit c91becf

Please sign in to comment.