LoginSignup
0
0

NEXTJSでAPIルートを作成したはずなのにエラーが発生する

Posted at

現象

pages/appフォルダ以下にファイルを作成してAPIルートを作成したはずなのにそのURLにアクセスするとエラーが発生してしまう

考えられる可能性

  • フォルダ構成が間違えている
  • ファイルの中身の書き方が間違えている

結論として、ファイルのパスの記載を間違えていた
具体的には.api.tsと記載する必要があるのに.tsと記載していた...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0