-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge pull request #31 from SolidLabResearch/master
bugfix 404 on /watch
- Loading branch information
Showing
9 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ Welcome to Solid Watchparty, a platform designed for shared media viewing experi | |
### Frontend | ||
1. **Clone the Repository** | ||
``` | ||
git clone https://gitlab.ilabt.imec.be/maavdnbr/watch-party.git | ||
git clone [email protected]:SolidLabResearch/solid-watch-party.git | ||
``` | ||
2. **Install Dependencies** | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
baseDir: '/solid-watch-party/', | ||
outDir: '../dist', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import viteConfig from "./vite.config.js"; | ||
import * as fs from "fs"; | ||
|
||
// TODO: possibly get these from App.jsx | ||
const routes = [ | ||
"/menu", | ||
"/watch" | ||
]; | ||
const dir = viteConfig.build.outDir; | ||
|
||
for (const route of routes) { | ||
fs.cpSync(dir + "/index.html", dir + route + "/index.html"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
export const BASEPATH = '/solid-watch-party' | ||
|
||
/* NOTE(Elias): default POD directory structure related to the watchparty */ | ||
export const ROOMS_ROOT = 'watchparties/myRooms'; | ||
export const MESSAGES_ROOT = 'watchparties/myMessages'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import config from './config.js' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
base: '/solid-watch-party/', | ||
base: config.baseDir, | ||
build: { | ||
outDir: '../dist' | ||
outDir: config.outDir | ||
}, | ||
}) |