Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dany68's avatar
Level 15

Forge Project Type Issue

Hi everyone,

Is it possible to know retroactively what project type has been use to create a site on forge ? I've deployed a nuxtjs app and noticed that all my fetch execute in the client side only !

I would like to know if mistakenly I choose to create a static website instead of the default PHP/Laravel Project. Can this be the issue that nuxt doesn't fetch anything on the server side ?

Should I restart from scratch, or can something be done in the Nginx config ?

Thanks for your help

0 likes
1 reply
dany68's avatar
Level 15

Figured out that the issue comes from nuxt/axios module. I don't know why but the option pathRewrite doesn't work on production. To overcome the issue i made an axios plugin to proxy the urls - if it can help someone:

$axios.onRequest(config => {
        if (config.url.startsWith('/api/')) {
          config.url = config.url.replace('/api/', process.env.API_URL);
        }
        return config;
    });

If someone has a better alternative let me know please.

Please or to participate in this conversation.