Skip to content

Tool not working on subdomain #5106

@s-fog

Description

@s-fog
  • Laravel Version: last
  • Nova Version: last
  • PHP Version: 8.1.0
  • Database Driver & Version: MYSQL 8

On production admin panel located on subdomain admin.test.dog-ville.ru, everything works fine until i need to add tool.

When developing on localhost tool works as expected. Url on localhost is http://localhost:16275/admin/managerday. But when i deploy it to production url has 404 error admin.test.dog-ville.ru/managerday

I need nova be on separate domain.

nova.php

    'domain' => env('NOVA_DOMAIN_NAME', null),
    'path' => env('NOVA_PATH', '/'),

.env on localhost

APP_URL=http://localhost:16275
NOVA_PATH=/admin

.env on production

APP_URL=https://test.dog-ville.ru
NOVA_PATH=/
NOVA_DOMAIN_NAME=admin.test.dog-ville.ru

Can someone help to fix it. I dont know what is this issue. Every other link inside nova works as expected, for example https://admin.test.dog-ville.ru/resources/contact-nova-resources

Tool is new, no edit
image

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