score:0
Accepted answer
it can be solved by using assetprefix in next.config.js
module.exports = withimages(withsass({
cssloaderoptions: {
url: false
},
// might need to change it here, before going to the production
assetprefix: 'http://localhost:3000',
postcssloaderoptions: {
config: {
ctx: {
theme: json.stringify(process.env.react_app_theme)
}
}
}
}));
Source: stackoverflow.com
Related Query
- How to Point webpack to take aseets from localhost:3000 ? currently its taking from the url
- How to handle tons of DOM operation from D3 in React to take advantage of its virtualDOM
- How to pass data from child component to its parent in ReactJS?
- How do I change webpack dev server's default port from 8080 to a different port?
- how to import LESS files from specific path using webpack less-loader?
- how does webpack import from external url
- How to pass in an instance variable from a React component to its HOC?
- How to pass externals from webpack to jest?
- How to access a function in a Webpack bundle from a HTML script
- How to config webpack to transpile files from other lerna packages (ejected from create-react-app)
- How to access environment variables in react from docker and webpack
- How to take variable from outside reactjs
- How to take inputs from <Input/> in react semantic UI
- How to use images from sharp module in React and Webpack project
- How to remove suffix slash "/" from the assets url in webpack | Gatsby
- How to communicate from a grandchild up to its grandparent then back down to the grandparent's child in React Native
- Prevent button from taking up the full width of its container
- How do I create css class in createMuiTheme() and use them directly without having to get its value from component "classes" props?
- How to get image from public folder without using Webpack
- How to load a component separately from webpack bundles javascript?
- how consume webflux end point producing json streams from React
- How to make React.js fetch data from api as state and pass this state data from its parent to child component
- How to take input value from submit form and store in redux store variable?
- How to make Firefox restore its state properly when launched from vscode debug?
- How to import from different bundle created with webpack
- How to make a loading animation that shows up when you click on a button? It should take up the full screen & should be from right to left & disappear
- How delete an object based on its index from a nested array in React?
- How to update the correct state value in a parent component that gets its value from a child component using hooks in react?
- How to read an image from the localhost url and get its width and height in javascript
- How can I take a input from user and change it with setState?
More Query from same tag
- How to handle undefined error before useEffect execute?
- Live updating time not displaying
- react redux router display blank page
- React class method not defined no-undef
- redux-persist: How to save state on browser's local storage?
- Is it possible to dispatch multiple actions?
- replace numeric string to number inside an array
- How to pass id to componentdidmount in React
- Fetch data with id from url params on ssr
- Updating two stores from one ajax response
- Trying to import a JSON file into React but not working
- How can I pass HTML as props in ReactJS
- How to disable image fade in effect in React Native?
- how to access props in react quill image handler
- react konva animation to follow a path
- Trying to create a dropdown selection menu with React's <select> and map users from an array as an option
- React Material Updating TextInput Value
- How can I make a statement wait until a previous function is finished?
- How to hide a button when printing using react and styled components?
- Nodejs + mySQL data does not get sent to my database
- componentWillReceiveProps in child doesn't receive new props when setState() in parent
- What is the correct way to select one of many child elements in React?
- Best way for maping html elements from material ui and rendering by map
- TypeScript typing issue (marginally related to (P)React)
- How to reduce the number of product visible on my react carousel?
- State Keeps Refreshing Hundreds of Times, Even With useEffect
- How to prevent collapseWhitespace in create-react-app
- Cannot create a document inside the firebase collection
- Material UI DateRangePicker how to pick year to year only
- Does not show API fetch response data in the page - React Redux