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
Copy file name to clipboardexpand all lines: docs/content/2.deploy/providers/iis.md
+34-3
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,7 @@ This is an experimental preset.
12
12
13
13
1. Install [IISnode](https://github.com/azure/iisnode/releases), and the [IIS URL Rewrite Module](https://www.iis.net/downloads/microsoft/url-rewrite).
14
14
2. In IIS, add `.mjs` as a new mime type and set its content type to `application/javascript`.
15
-
3. Deploy the contents of your `.output` folder to your website in IIS.
16
-
15
+
3. Deploy the contents of your `.output` folder to your website in IIS.
17
16
18
17
## Using IIS directly
19
18
@@ -23,4 +22,36 @@ If you do not wish to use IISnode, you can use IIS directly.
23
22
24
23
1. Make sure that [Node.js](https://nodejs.org/en/) is installed on your Windows Server.
25
24
2. Make sure [`HttpPlatformHandler` Module](https://www.iis.net/downloads/microsoft/httpplatformhandler) is installed.
26
-
3. Copy your `.output` directory into the Windows Server, and create a website on IIS pointing to that exact directory.
25
+
3. Copy your `.output` directory into the Windows Server, and create a website on IIS pointing to that exact directory.
26
+
27
+
## IIS Config options
28
+
29
+
::code-group
30
+
31
+
```ts [nitro.config.ts]
32
+
exportdefaultdefineNitroConfig({
33
+
// IIS options default
34
+
iis: {
35
+
// merges in a pre-exisiting web.config file to the nitro default file
36
+
mergeConfig: true,
37
+
// overrides the default nitro web.config file all together
38
+
overrideConfig: false,
39
+
},
40
+
});
41
+
```
42
+
43
+
```ts [nuxt.config.ts]
44
+
exportdefaultdefineNuxtConfig({
45
+
nitro: {
46
+
// IIS options default
47
+
iis: {
48
+
// merges in a pre-exisiting web.config file to the nitro default file
49
+
mergeConfig: true,
50
+
// overrides the default nitro web.config file all together
0 commit comments