Providers
IIS
Deploy Nitro apps to IIS.
Using IISnode
Preset: iis_node
- Install the latest LTS version of Node.js on your Windows Server.
- Install IISnode
- Install IIS
URLRewriteModule. - In IIS, add
.mjsas a new mime type and set its content type toapplication/javascript. - Deploy the contents of your
.outputfolder to your website in IIS.
Using IIS handler
Preset: iis_handler / iis
You can use IIS http handler directly.
- Install the latest LTS version of Node.js on your Windows Server.
- Install IIS
HttpPlatformHandlerModule - Copy your
.outputdirectory into the Windows Server, and create a website on IIS pointing to that exact directory.
IIS config options
export default defineNitroConfig({
// IIS options default
iis: {
// merges in a pre-existing web.config file to the nitro default file
mergeConfig: true,
// overrides the default nitro web.config file all together
overrideConfig: false,
},
});