diff --git a/.env b/.env new file mode 100644 index 0000000..64c9e46 --- /dev/null +++ b/.env @@ -0,0 +1,16 @@ +# Copyright 2026 Seekra + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +VITE_ASSETS_BUILD_ID=2026-08-04-76a067e +VITE_ASSETS_BASE_URL=https://assets.seekra.jcloud-services.ddns.net diff --git a/src/config/env.js b/src/config/env.js new file mode 100644 index 0000000..c8418f0 --- /dev/null +++ b/src/config/env.js @@ -0,0 +1,22 @@ +/* +Copyright 2026 Seekra + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export const getAssetsUrl = function getAssetsUrl () { + return new URL( + `${import.meta.env.VITE_ASSETS_BUILD_ID}/`, + import.meta.env.VITE_ASSETS_BASE_URL + ).href; +};