/** @type {import('next').NextConfig} */ import cron from 'node-cron' import axios from 'axios' const baseUrl = '/api/schedule/' cron.schedule('*/10 * * * * *', async () => { try { await axios.get(baseUrl + 'schedule_blockscan') } catch (e) { // console.error(e); } }) cron.schedule('*/60 * * * * *', async () => { try { await axios.get(baseUrl + 'schedule_invoice_expired') } catch (e) { // console.error(e); } }) cron.schedule('*/60 * * * * *', async () => { try { await axios.get(baseUrl + 'schedule_pull_payment_expired') } catch (e) { // console.error(e); } }) cron.schedule('*/60 * * * * *', async () => { try { await axios.get(baseUrl + 'schedule_payment_request_expired') } catch (e) { // console.error(e); } }) const nextConfig = { allowedDevOrigins: ['127.0.0.1'], serverExternalPackages: ['@walletconnect/logger'], output: 'standalone', reactStrictMode: true, images: { remotePatterns: [ { protocol: 'https', hostname: '**', }, { protocol: 'http', hostname: '**', }, ], }, } export default nextConfig