You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem in my nextra project, when I want to add it as an application in IIS and do the build to the project, the html, css and js are created unformatted (the code in one line) and when I format it the src and the href are generated in this way:
and when I remove the first diagonal, it already detects the file, but I don't know if I'm doing the configuration wrong or how I can solve it.
next.config.js
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx',
unstable_staticImage: false
})
I don't know if there is a step-by-step guide on how to do a build to generate static documents correctly, with the correct redirects so that there is no problem when implementing it in IIS.
The text was updated successfully, but these errors were encountered:
I have a problem in my nextra project, when I want to add it as an application in IIS and do the build to the project, the html, css and js are created unformatted (the code in one line) and when I format it the src and the href are generated in this way:
<script src="/_next/static/gFTOU9sFvuV2s8Y2cTJ0s/_ssgManifest.js" defer=""></script>and when I remove the first diagonal, it already detects the file, but I don't know if I'm doing the configuration wrong or how I can solve it.
next.config.js
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx',
unstable_staticImage: false
})
const path = require('path');
module.exports = withNextra({
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
output: 'export',
images: {
unoptimized: true,
},
trailingSlash: true,
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '/out',
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '/out'
});
package.json
{
"name": "doc-crossmotion",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"export": "next export",
"lint": "next lint"
},
"dependencies": {
"next": "14.2.3",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
I don't know if there is a step-by-step guide on how to do a build to generate static documents correctly, with the correct redirects so that there is no problem when implementing it in IIS.
The text was updated successfully, but these errors were encountered: