Skip to content

Connect front back - #205

Open
karnishein wants to merge 26 commits into
configure-git-pagesfrom
connect-front-back
Open

karnishein wants to merge 26 commits into
configure-git-pagesfrom
connect-front-back

Conversation

@karnishein

Copy link
Copy Markdown
Contributor

connecting frontend to backend in terms of being able to call the Render api

@karnishein
karnishein marked this pull request as draft November 30, 2026 20:19
@karnishein
karnishein marked this pull request as ready for review December 2, 2026 12:52
@karnishein karnishein self-assigned this Dec 2, 2026
@karnishein karnishein added the feature A new Feature! label Dec 2, 2026
@karnishein
karnishein added this pull request to stack #206 December 2, 2026 12:53
@karnishein
karnishein force-pushed the connect-front-back branch 2 times, most recently from 4b73209 to f680a64 Compare December 2, 2026 16:52

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you want to use env variables like this and not just put them in the .dev.env at the root project?

throw new Error(`Server Error: ${errorText}`);
});
const response = await axios
.get(`${API_URL}${leaderboardUrl}`)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just do string1+string2 at this point

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or concat or smthing


export const fetchTeamNumbers = async () => {
const url = `${teamPageUrl}teamNumbers`;
const url = `${API_URL}${teamPageUrl}teamNumbers`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of concatinating every url with this, cant you use the vite config to make every fetch have this prefixed? Thats how it was when i did it

This branch had an error being deployed

1 failed (outdated) deployment
github-pages — 6afa3cb5 Deployed Dec 3, 2026 by karnishein via deploy / deploy #24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new Feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants