Skip to content

Commit

Permalink
fix: Local dev public path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 6, 2024
1 parent 3241408 commit da68442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import GameShell from "./jagex2/client/GameShell.js";

export default class Client extends GameShell {
static HOST: string = 'https://w2.225.2004scape.org';
static REPO: string = 'https://raw.githubusercontent.com/2004scape/Server/main/';
static REPO: string = 'https://raw.githubusercontent.com/2004scape/Server/main';

alreadyStarted: boolean = false;
errorStarted: boolean = false;
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const config = {

output: {
path: path.resolve(__dirname, 'public'),
publicPath: '/Client2/' // used for GitHub Pages, maybe control via env var?
publicPath: isProduction ? '/Client2/' : '/' // used for GitHub Pages, maybe control via env var?
},

devServer: {
Expand Down

0 comments on commit da68442

Please sign in to comment.