We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674b044 commit b252672Copy full SHA for b252672
app/api/frames/createStamp/route.tsx
@@ -10,7 +10,13 @@ const handleRequest = frames(async (ctx) => {
10
const template =
11
'スタイルはキティちゃんのようにシンプルで愛らしいキャラクターのLINEスタンプを生成してください。ポーズはセリフに合わせて適切に変化させてください。セリフ:';
12
const service = new StampService(template);
13
- const image_url = await service.generateImageUrl(ctx.message?.inputText);
+ let image_url = '';
14
+ if (process.env.NODE_ENV === 'development') {
15
+ image_url = await service.generateImageUrl(ctx.message?.inputText);
16
+ } else {
17
+ image_url =
18
+ 'https://github.com/knocks-public/2024-frameworks/assets/11481781/16530595-52af-4e27-84bd-02b1ce7ec62a';
19
+ }
20
21
return {
22
accepts: [
0 commit comments