Skip to content

Commit

Permalink
test simple response 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg committed Aug 15, 2023
1 parent 16e317c commit 6a5e0b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export const onRequest = require('./ssr/index.js');
// export const onRequest = require('./ssr/index.js');
export function onRequest() {
return new Response('Hello, world!');
}
6 changes: 3 additions & 3 deletions src-ssr/production-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
* This file is used ONLY on production.
*/

export function onRequest() {
return new Response('Hello, world!');
}
import { ssrProductionExport } from 'quasar/wrappers';

export default ssrProductionExport(async ({ ssrHandler }: { ssrHandler: unknown }) => ({ onRequest: ssrHandler }));

0 comments on commit 6a5e0b8

Please sign in to comment.