This commit is contained in:
@@ -1 +1 @@
|
|||||||
API_BASE_URL=https://dragonroll.aranroig.com/api
|
NUXT_PUBLIC_API_BASE_URL=https://dragonroll.aranroig.com/api
|
||||||
@@ -5,7 +5,6 @@ function loadLocaleMessages() {
|
|||||||
const messages: Record<string, any> = {}
|
const messages: Record<string, any> = {}
|
||||||
|
|
||||||
for (const path in locales) {
|
for (const path in locales) {
|
||||||
console.log(path);
|
|
||||||
const matched = path.match(/i18n\/locales\/(\w+)\/(.*)\.json$/)
|
const matched = path.match(/i18n\/locales\/(\w+)\/(.*)\.json$/)
|
||||||
if (!matched) continue
|
if (!matched) continue
|
||||||
|
|
||||||
@@ -18,7 +17,6 @@ function loadLocaleMessages() {
|
|||||||
messages[locale][file] = (locales[path] as any).default
|
messages[locale][file] = (locales[path] as any).default
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(messages);
|
|
||||||
return messages
|
return messages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const backendUrl = import.meta.env.API_BASE_URL || 'http://localhost:5000/api'
|
const backendUrl = import.meta.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
backendUrl
|
backendUrl
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
const server = axios.create({
|
const server = axios.create({
|
||||||
baseURL: import.meta.env.API_BASE_URL || 'http://localhost:5000/api',
|
baseURL: import.meta.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api',
|
||||||
headers: {
|
headers: {
|
||||||
"Access-Control-Allow-Origin": "*",
|
"Access-Control-Allow-Origin": "*",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:5000/api',
|
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api',
|
||||||
gitCommit: git.commit,
|
gitCommit: git.commit,
|
||||||
gitTag: git.tag,
|
gitTag: git.tag,
|
||||||
gitBranch: git.branch,
|
gitBranch: git.branch,
|
||||||
|
|||||||
Reference in New Issue
Block a user