Skip to content

Commit

Permalink
fix: local preview + local websocket setup
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Dec 30, 2024
1 parent 0013e14 commit e2df50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,11 @@ const handleEvalHydra = (msg) => {
// evaluate hydra code here...
};

const { port, protocol } = window.location;
const isSecure = protocol === "https:";
const session = new Session("default", {
// changed this part to what flok.cc uses
hostname: "flok.cc",
port: parseInt(port),
isSecure,
port: "", //parseInt(port),
isSecure: true,
});
window.session = session;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vite build --base /nudelsalat",
"preview": "vite preview"
"preview": "vite preview --base /nudelsalat"
},
"devDependencies": {
"vite": "^5.0.12"
Expand Down

0 comments on commit e2df50b

Please sign in to comment.