For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
Since Next.js is very popular now, it would be good to know how to set up a connection to the Oracle database in Next.js. I am using TypeScript.
Is there any documentation specifically for OracleDB and Next.js?
Thanks!
Use the Oracle Database Driver for Node.js
https://github.com/oracle/node-oracledb/
The Node.js driver may used for Next.js as well.
Detail at https://cjones-oracle.medium.com/using-node-oracledb-thick-mode-in-next-js-d74a40421a7e
https://github.com/oracle/node-oracledb/blob/main/examples/webapp.js
@jackbox1098 few more details here..
https://github.com/oracle-samples/oce-nextjs-blog-sample
Thanks to all for your feedback! I'll have a look at the samples and docs.
For a live sample, please check the test.zip file uploaded by the user in https://github.com/oracle/node-oracledb/issues/1691
and also check the comment for configuring next.config.(m)js file: https://github.com/oracle/node-oracledb/issues/1691#issuecomment-2317659776
Thanks again! Will add this to the config.