Skip to content

Commit

Permalink
uprade comment-system versions and fix env config
Browse files Browse the repository at this point in the history
  • Loading branch information
bosi95 committed Dec 14, 2024
1 parent fed6294 commit 0c42e97
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 19 deletions.
57 changes: 43 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"dependencies": {
"@ethersphere/bee-js": "^8.1.0",
"@solarpunkltd/comment-system-ui": "^0.1.6",
"@solarpunkltd/comment-system": "^1.2.1",
"@solarpunkltd/comment-system-ui": "^0.1.9",
"@solarpunkltd/comment-system": "^1.3.0",
"@solarpunkltd/swarm-decentralized-chat": "^0.1.13",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
Expand Down
4 changes: 2 additions & 2 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Intro from "./pages/Intro/Intro";
import NotesPage from "./pages/Notes/Notes";
import Profile from "./pages/Profile/Profile";
import ProfileCreation from "./pages/ProfileCreation/ProfileCreation";
import SpacesPage from "./pages/Spaces/Spaces";
import Spaces from "./pages/Spaces/Spaces";
import StayUpdated from "./pages/StayUpdated/StayUpdated";
import TACOnboardingPage from "./pages/TACOnboarding/TACOnboarding";
import TalkPage from "./pages/Talk/Talk";
Expand Down Expand Up @@ -485,7 +485,7 @@ const MainRouter = (): ReactElement => {
/>
<Route path={ROUTES.PROFILE} element={<Profile />} />
<Route path={ROUTES.AGENDA} element={<Agenda />} />
<Route path={ROUTES.SPACES} element={<SpacesPage />} />
<Route path={ROUTES.SPACES} element={<Spaces />} />
<Route
path={ROUTES.HOWDOESITWORK}
element={
Expand Down
2 changes: 1 addition & 1 deletion src/utils/bee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function updateFeed(
}
}

// adds "live_x" suffix to the topic if raw is true, so that topics can be versioned if needed
// adds ENV suffix to the topic if raw is true, so that dev and prod topics can be separated
export function getTopic(topic: string, raw: boolean): string {
if (raw) {
return topic + process.env.ENV;
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineConfig(({ mode }) => {
),
"process.env.GATEWAY": JSON.stringify(env.GATEWAY) ?? JSON.stringify(""),
"process.versions": JSON.stringify({ node: "browser-mock" }), // Mocking process.versions.node
"process.env.ENV": JSON.stringify(env.ENV) ?? JSON.stringify("dev"),
},
plugins: [
react(),
Expand Down

0 comments on commit 0c42e97

Please sign in to comment.