Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade comment system versions and fix env config #118

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading