diff --git a/.nvmrc b/.nvmrc index 8351c1939..3462e8c26 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14 +v18.19.0 \ No newline at end of file diff --git a/README.md b/README.md index f7684fce4..e7c181d00 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,11 @@ Full entry points documentation available on [api.yml](public/api.yaml) and on s Can be build directly (dev) or within Docker. ### Native Build Setup + +**Prerequisite** + +- Node >= 18.0.0 < 20.0.0 + ```bash # install dependencies yarn install diff --git a/nuxt.config.ts b/nuxt.config.ts index 1322433b6..7195b3223 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,5 +1,4 @@ import { defineNuxtConfig } from 'nuxt/config' -import topLevelAwait from 'vite-plugin-top-level-await' import vuetify from 'vite-plugin-vuetify' import { vidos } from './lib/config' @@ -166,14 +165,6 @@ export default defineNuxtConfig({ vite: { clearScreen: false, - plugins: [ - // Add support for old browser of - // const { ... } = await import('maplibre-gl') - topLevelAwait(), - ], - optimizeDeps: { - exclude: ['vite-plugin-top-level-await'], - }, }, // Server config (allow listening to local network) diff --git a/package.json b/package.json index 189d35549..c3b81cb7e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.21.0", "private": true, "engines": { - "node": ">= 18.0.0" + "node": ">= 18.0.0 < 20.0.0" }, "scripts": { "prepare": "yarn nuxi prepare", @@ -126,7 +126,6 @@ "tailwindcss": "^3.3.2", "ts-node": "^10.9.1", "typescript": "^5.1.3", - "vite-plugin-top-level-await": "^1.3.1", "vite-plugin-vuetify": "^1.0.2", "vue-tsc": "^1.8.0" } diff --git a/yarn.lock b/yarn.lock index 318c57c71..68cd146e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3972,18 +3972,6 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-virtual@npm:^3.0.1": - version: 3.0.1 - resolution: "@rollup/plugin-virtual@npm:3.0.1" - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 - peerDependenciesMeta: - rollup: - optional: true - checksum: efcb67a9b962b74ce1c2376105ee7155c5f4fbe0bf78527659c847f986f29c34beaafa24775dc496ba51a9045bb7457786ad07385626276d006907b13662a197 - languageName: node - linkType: hard - "@rollup/plugin-wasm@npm:^6.1.2": version: 6.1.2 resolution: "@rollup/plugin-wasm@npm:6.1.2" @@ -4174,115 +4162,6 @@ __metadata: languageName: node linkType: hard -"@swc/core-darwin-arm64@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-darwin-arm64@npm:1.3.42" - checksum: dba79fc93f6aa14dc0817c5b9fad393357d02ad8d555097440d55d54ffa075b952cffdea5b160785bc716c38dcec3e75a72cd8bb8a7e87394306ab9b6b819f21 - languageName: node - linkType: hard - -"@swc/core-darwin-x64@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-darwin-x64@npm:1.3.42" - checksum: e9e8df9f49ce4bbe9d312f224f331c36d695a711b38840e04f6365278de835ceda682d95d2b8e2817628661dc88823ac85bd542d9466d5be9b95ef1dadf41b2c - languageName: node - linkType: hard - -"@swc/core-linux-arm-gnueabihf@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.42" - checksum: 30e0ae9da5dcef5241f3019e3fff1dfce6a26acd6162e258d5261bf18e74d3b41e9e44979429211ed3eb2fa95458226875c49f82280147dbb68db7cefcd4efda - languageName: node - linkType: hard - -"@swc/core-linux-arm64-gnu@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-linux-arm64-gnu@npm:1.3.42" - checksum: 426a5cac63d997fcfa2b4e3932474f27908244397fac0176267e0d901641fdd708fe76afd4d9346b8de1ec1f0ce1eb6f80aec02ab14fd04a84278f75bde0a040 - languageName: node - linkType: hard - -"@swc/core-linux-arm64-musl@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-linux-arm64-musl@npm:1.3.42" - checksum: 7700a98ef9254e848c0b48e14e9e9c42e9d1e8983d75c7b86ea1cd5e2592038ee7e96b45d7fd5ce8fb2feb69d8b1b86ece228276db8b02ea8cdf1439700c3c5c - languageName: node - linkType: hard - -"@swc/core-linux-x64-gnu@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-linux-x64-gnu@npm:1.3.42" - checksum: 8ecbccad7e9e0d61445d0180cff46863fd36902a1222de273a44b0fe2f1c0c8eefbf51f770a5d9f4fb59f5ade28ae078e734ef97207e37bc6a85b2a3a886cad0 - languageName: node - linkType: hard - -"@swc/core-linux-x64-musl@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-linux-x64-musl@npm:1.3.42" - checksum: fe6d5aa295a08c5ba634e2e02b4e16e1e293430e30d8bce46a2f7c427e9d7e0b2ec68abd1bde3831a6e1641af5521f49d24d2b58ab9c5015a88acb460c989696 - languageName: node - linkType: hard - -"@swc/core-win32-arm64-msvc@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-win32-arm64-msvc@npm:1.3.42" - checksum: fefb285f200e60a86cd9443a8f4c14078c1dfb9819478c7b40da592a4b100cf466e575ab01f4caf1ca6e4c7120f5b08481e2b8d4f804f2059e85393669010010 - languageName: node - linkType: hard - -"@swc/core-win32-ia32-msvc@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-win32-ia32-msvc@npm:1.3.42" - checksum: 09dbf60f092e3e2767007c123c33bcfb495e4ad0587f6ad01e68f0e7b02445a7b84e8a6b0855e1e96d9f2649583a3177976dc5f61201b44132161f22737c15bf - languageName: node - linkType: hard - -"@swc/core-win32-x64-msvc@npm:1.3.42": - version: 1.3.42 - resolution: "@swc/core-win32-x64-msvc@npm:1.3.42" - checksum: 108040d27f25ebf850a1e499be231a1f5d6692c88138d6e39959d1decc83559f19f8601c386a719cd64b1f98f01ee783fd697efdcc4d64629c0c9c04dd52e07c - languageName: node - linkType: hard - -"@swc/core@npm:^1.3.10": - version: 1.3.42 - resolution: "@swc/core@npm:1.3.42" - dependencies: - "@swc/core-darwin-arm64": 1.3.42 - "@swc/core-darwin-x64": 1.3.42 - "@swc/core-linux-arm-gnueabihf": 1.3.42 - "@swc/core-linux-arm64-gnu": 1.3.42 - "@swc/core-linux-arm64-musl": 1.3.42 - "@swc/core-linux-x64-gnu": 1.3.42 - "@swc/core-linux-x64-musl": 1.3.42 - "@swc/core-win32-arm64-msvc": 1.3.42 - "@swc/core-win32-ia32-msvc": 1.3.42 - "@swc/core-win32-x64-msvc": 1.3.42 - dependenciesMeta: - "@swc/core-darwin-arm64": - optional: true - "@swc/core-darwin-x64": - optional: true - "@swc/core-linux-arm-gnueabihf": - optional: true - "@swc/core-linux-arm64-gnu": - optional: true - "@swc/core-linux-arm64-musl": - optional: true - "@swc/core-linux-x64-gnu": - optional: true - "@swc/core-linux-x64-musl": - optional: true - "@swc/core-win32-arm64-msvc": - optional: true - "@swc/core-win32-ia32-msvc": - optional: true - "@swc/core-win32-x64-msvc": - optional: true - checksum: 36f61f31bbba59484c0ad279e7bdbef68037f33508ba17b81a7d4800a87e29ae123e8c601f7e7b3143ef1c7206e446631f4ec846c448bcb862d27fc162f9f5c5 - languageName: node - linkType: hard - "@tailwindcss/forms@npm:^0.5.3": version: 0.5.3 resolution: "@tailwindcss/forms@npm:0.5.3" @@ -4429,7 +4308,6 @@ __metadata: ts-node: ^10.9.1 typescript: ^5.1.3 url-slug: ^4.0.1 - vite-plugin-top-level-await: ^1.3.1 vite-plugin-vuetify: ^1.0.2 vue-cookie-accept-decline: ^6.1.0 vue-matomo: ^4.2.0 @@ -19518,15 +19396,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^9.0.0": - version: 9.0.0 - resolution: "uuid@npm:9.0.0" - bin: - uuid: dist/bin/uuid - checksum: 5a7f936a25dad15398521ae14412d70b278e1187f108f5c68c5af97138e61cc4c80dbb61ee194756f825e2f1e70d37095b9239b3fdf78f9d892b93ad30085e6a - languageName: node - linkType: hard - "v8-compile-cache-lib@npm:^3.0.1": version: 3.0.1 resolution: "v8-compile-cache-lib@npm:3.0.1" @@ -19706,19 +19575,6 @@ __metadata: languageName: node linkType: hard -"vite-plugin-top-level-await@npm:^1.3.1": - version: 1.3.1 - resolution: "vite-plugin-top-level-await@npm:1.3.1" - dependencies: - "@rollup/plugin-virtual": ^3.0.1 - "@swc/core": ^1.3.10 - uuid: ^9.0.0 - peerDependencies: - vite: ">=2.8" - checksum: 7f8b27d34c489a187143f3b0a9a7546971f1329ccc454fa96c82cc6b7ab56b5e430af7ded94238345921b5469e790b6c1c6dbf010ab27f68176b83f827774c80 - languageName: node - linkType: hard - "vite-plugin-vuetify@npm:^1.0.2": version: 1.0.2 resolution: "vite-plugin-vuetify@npm:1.0.2"