Skip to content

chore: fix static website for icp ninja #1132

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

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions hosting/static-website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,32 @@ img {
}
```

The project folder will then look like this:

```
static-website
├── dfx.json
└── frontend
   ├── assets
   │   ├── logo.png
   │   └── main.css
   └── src
   └── index.html
```
## `dfx.json`

The `dfx.json` file is a configuration file that specifies the canister used for the dapp. In this case only one canister is needed. Besides the canister configuration, `dfx.json` also includes information about the project's build settings.

```json
{
"canisters": {
"www": {
"frontend": {
"frontend": {
"entrypoint": "assets/src/index.html"
"entrypoint": "frontend/src/index.html"
},
"source": [
"assets/assets",
"assets/src"
"frontend/assets",
"frontend/src"
],
"type": "assets"
}
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions hosting/static-website/dfx.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"canisters": {
"www": {
"frontend": {
"frontend": {
"entrypoint": "assets/src/index.html"
"entrypoint": "frontend/src/index.html"
},
"source": [
"assets/assets",
"assets/src"
"frontend/assets",
"frontend/src"
],
"type": "assets"
}
Expand Down
Loading