Skip to content

Commit 5d1723c

Browse files
authored
chore: fix static website for icp ninja (#1132)
1 parent 468afb1 commit 5d1723c

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

hosting/static-website/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,32 @@ img {
5252
}
5353
```
5454

55+
The project folder will then look like this:
56+
57+
```
58+
static-website
59+
├── dfx.json
60+
└── frontend
61+
   ├── assets
62+
   │   ├── logo.png
63+
   │   └── main.css
64+
   └── src
65+
   └── index.html
66+
```
5567
## `dfx.json`
5668

5769
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.
5870

5971
```json
6072
{
6173
"canisters": {
62-
"www": {
74+
"frontend": {
6375
"frontend": {
64-
"entrypoint": "assets/src/index.html"
76+
"entrypoint": "frontend/src/index.html"
6577
},
6678
"source": [
67-
"assets/assets",
68-
"assets/src"
79+
"frontend/assets",
80+
"frontend/src"
6981
],
7082
"type": "assets"
7183
}
Binary file not shown.

hosting/static-website/dfx.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"canisters": {
3-
"www": {
3+
"frontend": {
44
"frontend": {
5-
"entrypoint": "assets/src/index.html"
5+
"entrypoint": "frontend/src/index.html"
66
},
77
"source": [
8-
"assets/assets",
9-
"assets/src"
8+
"frontend/assets",
9+
"frontend/src"
1010
],
1111
"type": "assets"
1212
}

0 commit comments

Comments
 (0)