WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
Remember that whatever the `listen()` function returns (if anything) will be exported from your built `dist/ssr/index.js`. You can return your ssrHandler for a serverless architecture should you need it.
161
235
:::
162
236
163
-
## Parameters
164
-
165
-
```js
166
-
exportfunction <functionName> ({
167
-
app, port, isReady, ssrHandler,
168
-
resolve, publicPath, folders, render, serve
169
-
}) => {
170
-
```
171
-
172
-
Detailing the Object:
173
-
174
-
```js
175
-
{
176
-
app, // Expressjs app instance (or whatever you return from create())
177
-
178
-
port, // on production: process∙env∙PORT or quasar.config file > ssr > prodPort
179
-
// on development: quasar.config file > devServer > port
180
-
181
-
isReady, // Function to call returning a Promise
182
-
// when app is ready to serve clients
183
-
184
-
ssrHandler, // Prebuilt app handler if your serverless service
Please note that the provided `ssrHandler` is a Function of form: `(req, res, next) =>void`.
305
+
Please note that the provided `app` is a Function of form: `(req, res, next) => void`.
280
306
Should you require to export a handler of form `(event, context, callback) => void` then you will most likely want to use the `serverless-http` package (see below).
Remember that whatever the `listen()` function returns (if anything) will be exported from your built `dist/ssr/index.js`. You can return your ssrHandler for a serverless architecture should you need it.
161
235
:::
162
236
163
-
## Parameters
164
-
165
-
```js
166
-
exportfunction <functionName> ({
167
-
app, port, isReady, ssrHandler,
168
-
resolve, publicPath, folders, render, serve
169
-
}) => {
170
-
```
171
-
172
-
Detailing the Object:
173
-
174
-
```js
175
-
{
176
-
app, // Expressjs app instance (or whatever you return from create())
177
-
178
-
port, // on production: process∙env∙PORT or quasar.config file > ssr > prodPort
179
-
// on development: quasar.config file > devServer > port
180
-
181
-
isReady, // Function to call returning a Promise
182
-
// when app is ready to serve clients
183
-
184
-
ssrHandler, // Prebuilt app handler if your serverless service
Please note that the provided `ssrHandler` is a Function of form: `(req, res, next) =>void`.
305
+
Please note that the provided `app` is a Function of form: `(req, res, next) => void`.
280
306
Should you require to export a handler of form `(event, context, callback) => void` then you will most likely want to use the `serverless-http` package (see below).
0 commit comments