File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'Home Page' , ( ) => {
2
2
beforeEach ( ( ) => {
3
3
const baseUrl = 'http://localhost:5173/ab-test-calculator-link/'
4
- const url = `${ baseUrl } ?cs=1000&cc=24&vs=1000&vc=54`
4
+ const url = `${ baseUrl } #/ ?cs=1000&cc=24&vs=1000&vc=54`
5
5
6
6
cy . task ( "log" , `--> Visiting URL: ${ url } ` )
7
7
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import ReactDOM from 'react-dom/client' ;
3
- import { BrowserRouter } from 'react-router-dom' ;
3
+ import { BrowserRouter , HashRouter } from 'react-router-dom' ;
4
4
import App from './App' ;
5
5
import './index.css' ;
6
6
7
- const Router = BrowserRouter ;
7
+ const Router = process . env . NODE_ENV === 'production' ? HashRouter : BrowserRouter ;
8
8
9
9
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
10
10
< React . StrictMode >
You can’t perform that action at this time.
0 commit comments