Skip to content

Commit

Permalink
Merge pull request #1570 from merico-dev/1569-failed-to-execute-fetch…
Browse files Browse the repository at this point in the history
…-on-workerglobalscope

1569 failed to execute fetch on workerglobalscope
  • Loading branch information
GerilLeto authored Nov 13, 2024
2 parents 21c4f8f + f438e98 commit 696304c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/api",
"version": "13.43.10",
"version": "13.43.11",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/dashboard",
"version": "13.43.10",
"version": "13.43.11",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/root",
"version": "13.43.10",
"version": "13.43.11",
"private": true,
"workspaces": [
"api",
Expand Down
2 changes: 1 addition & 1 deletion settings-form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtable/settings-form",
"version": "13.43.10",
"version": "13.43.11",
"license": "Apache-2.0",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@devtable/website",
"private": true,
"license": "Apache-2.0",
"version": "13.43.10",
"version": "13.43.11",
"scripts": {
"dev": "vite",
"preview": "vite preview"
Expand Down
8 changes: 7 additions & 1 deletion website/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import { IDashboardConfig } from '@devtable/dashboard';
import { ISettingsFormConfig } from '@devtable/settings-form';
import { APICaller } from '../api-caller';

export const MonacoPath = import.meta.env.VITE_WEBSITE_BASE_URL + '/assets/monaco-editor/min/vs';
const joinPath = (a: string, b: string) => {
return (a + b).replace(/\/\//, '/');
};
export const MonacoPath = new URL(
joinPath(import.meta.env.VITE_WEBSITE_BASE_URL, '/assets/monaco-editor/min/vs'),
window.location.origin,
).toString();

export const BaseDashboardConfig: IDashboardConfig = {
apiBaseURL: import.meta.env.VITE_API_BASE_URL,
Expand Down

0 comments on commit 696304c

Please sign in to comment.