Skip to content

Commit

Permalink
Fix/Prerender (#67)
Browse files Browse the repository at this point in the history
* added routes with optional param to prerender.routes

* Update actions.yaml

* Update actions.yaml

* Update nginx.conf

---------

Co-authored-by: Yehor Podporinov <[email protected]>
Co-authored-by: Oleksandr Varchenko <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2024
1 parent bef1a49 commit ad4df9d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ http {
aio threads;
try_files $uri $uri/index.html =404;
}
location ~ ^/abi/encoder/.* {
error_page 404 /404.html;
}
location ~ ^/abi/decoder/.* {
error_page 404 /404.html;
}
location ~ ^/hash-function/keccak256/.* {
error_page 404 /404.html;
}
location ~ ^/hash-function/sha256/.* {
error_page 404 /404.html;
}
location ~ ^/hash-function/ripemd160/.* {
error_page 404 /404.html;
}
}

}
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ export default defineNuxtConfig({
preset: 'node-server',
prerender: {
failOnError: false,
routes: [
'/abi/encoder/',
'/abi/decoder/',
'/hash-function/keccak256',
'/hash-function/sha256',
'/hash-function/ripemd160',
],
},
},
})

0 comments on commit ad4df9d

Please sign in to comment.