Skip to content

Commit

Permalink
Fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
steel97 committed Jan 31, 2024
1 parent 7413897 commit 6d6cfbc
Show file tree
Hide file tree
Showing 12 changed files with 143 additions and 12,780 deletions.
14 changes: 7 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NUXT_BASE_URL=http://localhost:3000
NUXT_BASE_URL_FRONTEND=https://veil.tools
NUXT_SNAPSHOT_MIRRORS=[{"name": "Mainnet", "icon": "/images/networks/mainnet.svg", "mirrors": [{"name": "NA1", "path": "https://mirror-na1.veil.tools/"}, {"name": "NA2", "path": "https://mirror-na2.veil.tools/"},{"name": "EU1", "path": "https://mirror-eu1.veil.tools/"}, {"name": "EU2", "path": "https://mirror-eu2.veil.tools/"}]}, {"name": "Testnet", "icon": "/images/networks/testnet.svg", "mirrors": [{"name": "NA1", "path": "https://mirror-na1.veil.tools/testnet/"}, {"name": "NA2", "path": "https://mirror-na2.veil.tools/testnet/"},{"name": "EU1", "path": "https://mirror-eu1.veil.tools/testnet/"}, {"name": "EU2", "path": "https://mirror-eu2.veil.tools/testnet/"}]}]
NUXT_EXPLORER_BACKEND_ENDPOINT=https://explorer-api.veil-project.com
NUXT_NETWORK_PRE_MEASURE_FILE_SIZE=51200
NUXT_NETWORK_MEASURE_FILE_SIZE=3145728
NUXT_COOKIE_SAVE_DAYS=90
NUXT_PUBLIC_BASE_URL=http://localhost:3000
NUXT_PUBLIC_BASE_URL_FRONTEND=https://veil.tools
NUXT_PUBLIC_SNAPSHOT_MIRRORS=[{"name": "Mainnet", "icon": "/images/networks/mainnet.svg", "mirrors": [{"name": "NA1", "path": "https://mirror-na1.veil.tools/"}, {"name": "NA2", "path": "https://mirror-na2.veil.tools/"},{"name": "EU1", "path": "https://mirror-eu1.veil.tools/"}, {"name": "EU2", "path": "https://mirror-eu2.veil.tools/"}]}, {"name": "Testnet", "icon": "/images/networks/testnet.svg", "mirrors": [{"name": "NA1", "path": "https://mirror-na1.veil.tools/testnet/"}, {"name": "NA2", "path": "https://mirror-na2.veil.tools/testnet/"},{"name": "EU1", "path": "https://mirror-eu1.veil.tools/testnet/"}, {"name": "EU2", "path": "https://mirror-eu2.veil.tools/testnet/"}]}]
NUXT_PUBLIC_EXPLORER_BACKEND_ENDPOINT=https://explorer-api.veil-project.com
NUXT_PUBLIC_NETWORK_PRE_MEASURE_FILE_SIZE=51200
NUXT_PUBLIC_NETWORK_MEASURE_FILE_SIZE=3145728
NUXT_PUBLIC_COOKIE_SAVE_DAYS=90
20 changes: 14 additions & 6 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@ export default defineNuxtConfig({
devtools: { enabled: true },
runtimeConfig: {
public: {
baseUrl: process.env.NUXT_BASE_URL!,
snapshotMirrors: JSON.parse(process.env.NUXT_SNAPSHOT_MIRRORS!),
networkPreMeasureFileSize: parseInt(process.env.NUXT_NETWORK_PRE_MEASURE_FILE_SIZE!),
networkMeasureFileSize: parseInt(process.env.NUXT_NETWORK_MEASURE_FILE_SIZE!),
explorerBackendEndpoint: process.env.NUXT_EXPLORER_BACKEND_ENDPOINT!
baseUrl: process.env.NUXT_PUBLIC_BASE_URL!,
snapshotMirrors: JSON.parse(process.env.NUXT_PUBLIC_SNAPSHOT_MIRRORS!),
networkPreMeasureFileSize: parseInt(process.env.NUXT_PUBLIC_NETWORK_PRE_MEASURE_FILE_SIZE!),
networkMeasureFileSize: parseInt(process.env.NUXT_PUBLIC_NETWORK_MEASURE_FILE_SIZE!),
explorerBackendEndpoint: process.env.NUXT_PUBLIC_EXPLORER_BACKEND_ENDPOINT!
}
},
app: {
pageTransition: { name: "page", mode: "out-in" }
},
modules: [
"@nuxt/image",
"@nuxtjs/i18n",
"@nuxtjs/tailwindcss"
],
i18n: {
baseUrl: process.env.NUXT_BASE_URL_FRONTEND!,
baseUrl: process.env.NUXT_PUBLIC_BASE_URL_FRONTEND!,
locales: [
{
name: "English",
Expand All @@ -41,6 +45,10 @@ export default defineNuxtConfig({
alwaysRedirect: true
}
},
image: {
quality: 100,
format: ["webp"]
},
srcDir: "src/",
css: ["~/assets/css/tailwind.css"],
postcss: {
Expand Down
Loading

0 comments on commit 6d6cfbc

Please sign in to comment.