Skip to content

Failed to register #6

@gongshaojie12

Description

@gongshaojie12

When I followed the steps in the README.md to install and start the service, registration fails. How can I resolve this issue? The logs are as follows:

> saas-starter-5@0.1.0 dev
> next dev --turbopack

 ⚠ Port 3000 is in use, using available port 3001 instead.
   ▲ Next.js 15.3.5 (Turbopack)
   - Local:        http://localhost:3001
   - Network:      http://ip:3001
   - Environments: .env.local

 ✓ Starting...
 ✓ Compiled middleware in 156ms
 ✓ Ready in 3.2s
 ○ Compiling / ...
 ✓ Compiled / in 2.1s
 GET / 200 in 2562ms
 ⚠ Blocked cross-origin request from ip to /_next/* resource. To allow this, configure "allowedDevOrigins" in next.config
Read more: https://nextjs.org/docs/app/api-reference/config/next-config-js/allowedDevOrigins
 ○ Compiling /register ...
 ✓ Compiled /register in 810ms
 GET /register 200 in 833ms

I have already added allowedDevOrigins in next.config.ts, but I still cannot register. As follows:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  eslint: {
    // Warning: This allows production builds to successfully complete even if
    // your project has ESLint errors.
    ignoreDuringBuilds: true,
  },
  typescript: {
    // !! WARN !!
    // Dangerously allow production builds to successfully complete even if
    // your project has type errors.
    ignoreBuildErrors: true,
  },
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: '**',
      },
      {
        protocol: 'http',
        hostname: '**',
      },
    ],
  },
  allowedDevOrigins: [
      'http://ip',
      'http://localhost:3001',
      'http://127.0.0.1:3001'
  ],
};

export default nextConfig;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions