Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Custom default handler#2007

Unanswered
patrickng-seek asked this question inQ&A
Discussion options

There isinputs.handler but I am wondering how to use it, and how to call thedefault-handler. I copied the deprecated example which is not working, is there is a working example for current version?

const compat = require("@sls-next/next-aws-lambda");module.exports = (page) => {  const handler = (event, context, callback) => {    // let's add some logging    console.log("URL: ", event.path);    // render page    compat(page)(event, context, callback);    console.log("This is cool (☞゚∀゚)☞");  };  return handler;};
You must be logged in to vote

Replies: 1 comment

Comment options

Hey there, sorry for the late response as I don't seem to get notifications for these and missed it. I am actually not sure as I think this was a community-contributed feature? Hopefully if you could mention which part ofinputs.handler is not working we can try to get it to work again and possibly tested properly in the CI pipelines.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@patrickng-seek@dphang

[8]ページ先頭

©2009-2025 Movatter.jp