Deployed strapi admin panel trying to hit localhost:1337

:thinking: Total javascript / nodejs noob guy here. :grinning_face_with_smiling_eyes:

I am trying to do this:

process.env.PUBLIC_URL for a plugin, but the PUBLIC_URL says undefined.

This PUBLIC_URL should automatically change depending if it is localhost or on an actual www domain.

The error I am receiving.

The resource from “http://localhost:1337/admin/content-manager/collectionType/api::article.article/undefined/tinymce/tinymce.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

From this plugin index.js

...
{process.env.url + '/tinymce/tinymce.min.js'}
...

My current development config/server.js

'use strict';

const cronTasks = require('./src/cron-tasks');

module.exports = ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  url: 'http://localhost:1337',
  cron: {
    enabled: true,
    tasks: cronTasks,
  },
  app: {
    keys: env.array('APP_KEYS', ['toBeModified1', 'toBeModified2']),
  },
  webhooks: {
    // TODO: V5, set to false by default
    // Receive populated relations in webhook and db lifecycle payloads
    // This only populates relations in all content-manager endpoints
    populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', true),
  },
});

TinyMCE self-hosted is looking for this file:

tinymceScriptSrc={process.env.PUBLIC_URL + '/tinymce/tinymce.min.js'}

but PUBLIC_URL is undefined. This file is located in the local root tinymce plugin directory via public/tinymce/tinymce.min.js.