Commit 5dd78259 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/cards.db' into 'main'

pack cards.db in dist

See merge request !118
parents 87106ec4 25a3759a
Pipeline #20481 passed with stages
in 6 minutes and 5 seconds
......@@ -6,6 +6,7 @@
}],
"assetsPath": "/neos-assets",
"cardImgUrl": "https://cdn02.moecube.com:444/images/ygopro-images-zh-CN",
"cardsDbUrl": "https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb",
"ui": {
"ground": {
"width": 9.9,
......
......@@ -42,6 +42,7 @@ import { initMeExtraDeckMeta } from "../reducers/duel/extraDeckSlice";
import type { MenuProps, UploadProps } from "antd";
import { useParams } from "react-router-dom";
import { selectDuelStart } from "../reducers/moraSlice";
import NeosConfig from "../../neos.config.json";
const READY_STATE = "ready";
......@@ -71,7 +72,7 @@ const WaitRoom = () => {
// 初始化sqlite
await sqliteMiddleWare({
cmd: sqliteCmd.INIT,
initInfo: { dbUrl: "/ygopro-database/locales/zh-CN/cards.cdb" },
initInfo: { dbUrl: NeosConfig.cardsDbUrl },
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment