JackManning
JackManning
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
My bad for the confusion. Thanks for the help regardless!
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
same Switch import bug
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
no locally I'm getting the same error so I guess it must be something wrong with react-router-dom
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
v18.16.1
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
The build failed again but this time it flagged "Switch" from react-router-dom as not importing correctly. Is there a different router system that you know of that works?
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
With that nixpacks file? yes
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
https://nixpacks.com/docs/configuration/file set up some variables to minimize annoyance [variables] NPM_CONFIG_UPDATE_NOTIFIER = 'false' # the update notification is relatively useless in a production environment NPM_CONFIG_FUND = 'false' # the fund notification is also pretty useless in a production environment CADDY_VERSION = '2.7.5' # specify the caddy version to use here, without a 'v' prefix. https://github.com/caddyserver/caddy/releases download and untar caddy [phases.caddy] dependsOn = ['setup'] # make sure this phase runs after the default 'setup' phase cmds = [ 'curl -fsSLo caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v${CADDY_VERSION}/caddy_${CADDY_VERSION}_linux_amd64.tar.gz"', # download the caddy release specified by 'CADDY_VERSION' from GitHub 'tar -zxvf caddy.tar.gz caddy', # only extract 'caddy' from the tarball 'chmod +x caddy' # enable file execution for caddy, needed to execute downloaded files ] format the Caddyfile with fmt [phases.fmt] dependsOn = ['caddy'] # make sure this phase runs after the 'caddy' phase so that we know we have caddy downloaded cmds = ['caddy fmt --overwrite Caddyfile'] # format the Caddyfile to fix any formatting inconsistencies copy caddy and build artifacts to a new image and start the caddy web server [start] runImage = 'ubuntu:20.04' # use a new ubuntu image to run the caddy server in onlyIncludeFiles = ['caddy', 'Caddyfile', 'build'] # copy only the needed files and folders into the new image (react-scripts builds to a 'build' folder) cmd = './caddy run --config Caddyfile --adapter caddyfile 2>&1' # start caddy using the Caddyfile config and caddyfile adapter
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
These are the build logs
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
I just tried setting up a router using react-router-dom and it gave me an issue regarding the dockerfile for some reason
24 replies
RRailway
Created by JackManning on 5/18/2024 in #✋|help
Docker Issue
project ID: ef987635-943c-471b-b185-cb7fa26305dc
24 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
Ok good to know! Thanks for the help
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
Does a callback path have to be set in order for it to work with that uri?
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
I didn't need to when running it locally, I just used http://localhost:3000 and that worked perfectly with my code
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
This is in my spotify developer dashboard
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
No description
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
I've triple checked that the redirect URI is properly configured on the Spotify Developer dashboard, is there some extra step I need to make this work for deployment?
15 replies
RRailway
Created by JackManning on 12/9/2023 in #✋|help
Invalid Redirect URI for Spotify authorization
project id: ef987635-943c-471b-b185-cb7fa26305dc
15 replies
RRailway
Created by JackManning on 12/8/2023 in #✋|help
npm WARN config production Use `--omit=dev` instead.
const useAuth = (code) => { const [accessToken, setAccessToken] = useState(); const [refreshToken, setRefreshToken] = useState(); const [expiresIn, setExpiresIn] = useState(); useEffect(() => { (async () => { try { const { data: { access_token, refresh_token, expires_in }, } = await axios.post(https://jukebox-backend-production-dd99.up.railway.app/login, { code, }); setAccessToken(access_token); setRefreshToken(refresh_token); setExpiresIn(expires_in); window.history.pushState({}, null, '/'); } catch (error){ console.log("Error: ", error); //window.location = '/'; } })(); }, [code]);
34 replies