Git Product home page Git Product logo

medusa-starter-default's People

Contributors

adevinwild avatar adrien2p avatar amirping avatar bennetfabian avatar dependabot[bot] avatar edleeman17 avatar empz avatar kasperkristensen avatar nullaf avatar olivermrbl avatar pkorsholm avatar riqwan avatar shahednasser avatar srindom avatar stephixone avatar tirthaguha avatar wangjue666 avatar wiwatsrt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

medusa-starter-default's Issues

Not updated with latest package versions

Is it intended that the this starter template is not updated when new versions of medusa are released? Would it make sense to have some way of automating updates to the template's package.json?

error: Region with reg_01GFX2R6RXDY33CWJVGZ1ZXZWA was not found

I am getting this error when I try to use the server with a frontend store

medusa-server-default         | Error: Region with reg_01GFX2R6RXDY33CWJVGZ1ZXZWA was not found
medusa-server-default         |     at RegionService.<anonymous> (/app/medusa/node_modules/@medusajs/medusa/dist/services/region.js:564:35)
medusa-server-default         |     at step (/app/medusa/node_modules/@medusajs/medusa/dist/services/region.js:59:23)
medusa-server-default         |     at Object.next (/app/medusa/node_modules/@medusajs/medusa/dist/services/region.js:40:53)
medusa-server-default         |     at fulfilled (/app/medusa/node_modules/@medusajs/medusa/dist/services/region.js:31:58)
medusa-server-default         |     at processTicksAndRejections (node:internal/process/task_queues:96:5) {
medusa-server-default         |   type: 'not_found',
medusa-server-default         |   code: undefined,
medusa-server-default         |   date: 2022-11-18T21:33:06.239Z
medusa-server-default         | }
medusa-server-default         | ::ffff:172.18.0.1 - - [18/Nov/2022:21:33:06 +0000] "GET /store/collections HTTP/1.1" 304 - "http://localhost:8000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
medusa-server-default         | ::ffff:172.18.0.1 - - [18/Nov/2022:21:33:06 +0000] "POST /store/carts HTTP/1.1" 404 89 "http://localhost:8000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"

medusa-server-default         | ::ffff:172.18.0.1 - - [18/Nov/2022:21:33:07 +0000] "GET /store/customers/me HTTP/1.1" 401 - "http://localhost:8000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"

I followed the docs exactly and seeded my project, and tried changing the command in develop.sh form medusa develop to medusa start with no success.

TS imports can not be resolved in VS code

When I install everything following the documentation and I open the project in VS code try adding some route or something it can not resolve imports.

Am I missing something?

Entry point error in Dockerfile

Hi @olivermrbl ,
I am a beginner and learning things in Docker. I made an image of this repo in my docker file. Two of the containers Postgres and Redis server are working but the medusa-server is not running there is an error coming up with an entry point in DockerFile that develop.sh file not found. I believe this is the right place to ask, if not please tell me where to ask or find the solution.
Thanks!

Admin dashboard docker image

Would be massive if we could spin up both the storefront server and admin dashboard in one docker image or even if there is a separate docker image for the admin dashboard.

Docker quickstart fails to start correctly - does not use environment variables

Hi,

Upon following the Docker quickstart, I observe the following errors:

medusa-server-default         | DriverOptionNotSetError: Driver option (database) is not set. Please set it to perform connection to the database.
medusa-server-default         | [medusa-config] ⚠️ redis_url not found. A fake redis instance will be used.

This appears to be due to the correct config for this environment in medusa-config.js - using the environment variables baked into docker-compose.yml and database_type: "postgres", are commented out:

module.exports = {
  projectConfig: {
    // redis_url: REDIS_URL,
    // For more production-like environment install PostgresQL
    // database_url: DATABASE_URL,
    // database_type: "postgres",
    database_database: "./medusa-db.sql",
    database_type: "sqlite",
    store_cors: STORE_CORS,
    admin_cors: ADMIN_CORS,
  },
  plugins,
};

Restoring the comments, and commenting

    // database_database: "./medusa-db.sql",
    // database_type: "sqlite",

can resolve the issue.

I think maybe the quickstart should default to using environment variables, and fall back to a hardcoded sqlite config when eg. process.env.DATABASE_URL does not exist?

Cheers,
Chris

REDIS does not work with Docker

Hi team, amazing work on this project 👏

Context 📖

Recently, I tried to implement a new feature : Cart expiration after a certain time
So I decided to use a custom subscriber for this new feature on my marketplace.

I usually launch Docker and I can start dev,
After several attempts and no events received I notice that Redis never exposes a port in localhost and therefore will never work.

Solution 💡

Using expose in the docker-compose.yml will not allow to develop locally for example
The ideal would be to use the ports key and expose the ports in this way:

redis:
    image: redis
    ports:
      - "6379:6379"

Pull request ✏️

I also opened a Pull Request for this issue, feel free to give me feedback
Maybe I missed something and this is not the best solution, anyway everything works on my side without any problem ✅

After adding REDIS_URL in config, issues where logged

Hey ! I setup the starter then I added REDIS_URL to the config and I got some warning in the console.

warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing user.created which has 0 subscribers
info:    Processing region.created which has 0 subscribers
info:    Processing region.created which has 0 subscribers
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child class
info:    Processing product-variant.created which has 1 subscribers
warn:    This is an empty method: addDocuments must be overridden by a child clas

add dotenv to package.json

Currently dotenv is used in medusa-config.js, but is not added in package.json

This should be fairly simple to fix, probably just yarn add dotenv?

"fetch failed" when building on Vercel

I'm trying to run the Medusa frontend on Vercel. During the next build command, I'm getting the following error:

{ error: 'fetch failed' }
{ error: 'fetch failed' }
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error

I'm assuming this has to do with the fact that the home page is statically pre-rendered and some product details are trying to be fetched from the Medusa backend database during the build process. This works fine on my local machine (a VM on Google Cloud). My guess is that somewhere some variable is still pointing to localhost but I can't find that somewhere.

Here's what I've done so far:

  1. Turned off the new product module by i) deleting src/app/api and ii) deleting the POSTGRES_URL environment variable from the .env file and iii) not specifying a POSTGRES_URL environment variable to Vercel.
  2. Set the NEXT_PUBLIC_MEDUSA_BACKEND environment variable in Vercel to the public IP address of the Google Cloud VM that is running my Medusa backend (http://<public_ip>:9000/health returns OK)

Any ideas what's causing this? Do I need to set the NEXT_PUBLIC_BASE_URL and NEXT_PUBLIC_MEDUSA_BACKEND environment variables in Vercel?

Use of npm when committed lockfile is for Yarn

Hi there,

We're using a Docker deployment of Medusa based on this repository where I work, and I think I've found something you should be aware of. It looks like module versions are being controlled using yarn.lock, but the Dockerfile provided runs npm install. This means the yarn.lock file is completely ignored when building using Docker, and results in the latest version of all Node modules being installed.

The result of this is that the Medusa backend has been upgrading itself each time we deploy it, without our knowledge. medusa migrations run is run on every deploy, so most of the update migrations will have worked, but obviously the more in-depth migrations and potential code changes have not been put in place.

Is there something I've missed, or is this a problem that should be rectified?

Failed to load resource: the server responded with a status of 404 () on Railway

When trying to deploy my medusa admin backend on Railway, the dashboard doesn't load. It works on local development. But the issue seems to persist when deployed. I'm only able to recreate this on localdev when I set autoRebuild: false on first medusa start after a clean build. But if I set autoRebuild: true after the first build and then start the backend the following starts work properly even if I set autoRebuild: false afterwards. But when I push changes and a new deployment starts, all I get is this:

Screenshot 2024-04-03 at 4 25 38 AM

The console log prints:

Refused to apply style from 'https://aesthetix-backend.up.railway.app/assets/index-9853bef1.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index-d61dff85.js:1 

Failed to load resource: the server responded with a status of 404 ()app:1 

Refused to apply style from 'https://aesthetix-backend.up.railway.app/assets/index-9853bef1.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

And here's the backend log, no indication of anything wrong here tho:

Server is ready on port: 9000

::ffff:10.10.10.12 - - [02/Apr/2024:22:08:16 +0000] "GET /health HTTP/1.1" 200 2 "-" "Go-http-client/1.1"

103.91.128.224 - - [02/Apr/2024:22:17:49 +0000] "GET / HTTP/1.1" 404 139 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"

103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /app HTTP/1.1" 200 446 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"

103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /assets/index-9853bef1.css HTTP/1.1" 404 164 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"

103.91.128.224 - - [02/Apr/2024:22:17:51 +0000] "GET /assets/index-d61dff85.js HTTP/1.1" 404 163 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"

103.91.128.224 - - [02/Apr/2024:22:17:53 +0000] "GET /assets/index-9853bef1.css HTTP/1.1" 404 164 "[https://aesthetix-backend.up.railway.app/app"](https://aesthetix-backend.up.railway.app/app%22); "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"

And here's my medusa-config.js:

const dotenv = require("dotenv");

let ENV_FILE_NAME = "";
switch (process.env.NODE_ENV) {
    case "production":
        ENV_FILE_NAME = ".env.production";
        break;
    case "staging":
        ENV_FILE_NAME = ".env.staging";
        break;
    case "test":
        ENV_FILE_NAME = ".env.test";
        break;
    case "development":
    default:
        ENV_FILE_NAME = ".env";
        break;
}

try {
    dotenv.config({ path: process.cwd() + "/" + ENV_FILE_NAME });
} catch (e) {}

// CORS when consuming Medusa from admin
const ADMIN_CORS =
    process.env.ADMIN_CORS || "http://localhost:7000,http://localhost:7001";

// CORS to avoid issues when consuming Medusa from a client
const STORE_CORS = process.env.STORE_CORS;
// || "http://localhost:8000";

const DATABASE_URL =
    process.env.DATABASE_URL || "postgres://localhost/medusa-starter-default";

const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379";

const BACKEND_URL = process.env.BACKEND_URL


const WORKER_MODE = process.env.MEDUSA_WORKER_MODE

const STRIPE_API_KEY = process.env.STRIPE_API_KEY;
const STRIPE_WEBHOOK_SECRET = process.env.STRIPE_WEBHOOK_SECRET;

const plugins = [
    `medusa-fulfillment-manual`,
    `medusa-payment-manual`,
    {
        resolve: `medusa-payment-stripe`,
        options: {
            api_key: STRIPE_API_KEY,
            webhook_secret: STRIPE_WEBHOOK_SECRET,
        }
    },
    {
        resolve: `medusa-file-s3`,
        options: {
            s3_url: process.env.S3_URL,
            bucket: process.env.S3_BUCKET,
            region: process.env.S3_REGION,
            access_key_id: process.env.S3_ACCESS_KEY_ID,
            secret_access_key: process.env.S3_SECRET_ACCESS_KEY,
        },
    },
    {
        resolve: "@medusajs/admin",
        /** @type {import('@medusajs/admin').PluginOptions} */
        options: {
            autoRebuild: false,
        }
    },
    {
        resolve: `medusa-plugin-algolia`,
        options: {
            applicationId: process.env.ALGOLIA_APP_ID,
            adminApiKey: process.env.ALGOLIA_ADMIN_API_KEY,
            settings: {
                indexName: {
                    indexSettings: {
                        searchableAttributes: ["title", "description"],
                        attributesToRetrieve: [
                            "id",
                            "title",
                            "description",
                            "handle",
                            "thumbnail",
                            // "variants",
                            "variant_sku",
                            "options",
                            "collection_title",
                            "collection_handle",
                            "images",
                        ],

                    },
                    transformer: (product) => ({
                        objectID: product.id,
                        // other attributes...
                    }),
                },
            },
        },
    },
    {
        resolve: `medusa-plugin-sendgrid`,
        options: {
            api_key: process.env.SENDGRID_API_KEY,
            from: process.env.SENDGRID_FROM,
            order_placed_template: process.env.SENDGRID_ORDER_PLACED_ID,
        },
    },
];

/** @type {import('@medusajs/medusa').ConfigModule["featureFlags"]} */
const featureFlags = {
    product_categories: true,
    order_editing: true,
};

/** @type {import('@medusajs/medusa').ConfigModule["modules"]} */
const modules = {
    cacheService: {
        resolve: "@medusajs/cache-redis",
        options: {
            redisUrl: process.env.CACHE_REDIS_URL,
            ttl: 60 * 60,
        }
    },
    eventBus: {
        resolve: "@medusajs/event-bus-redis",
        options: {
            redisUrl: process.env.EVENTS_REDIS_URL,
        },
    },
};


/** @type {import('@medusajs/medusa').ConfigModule["projectConfig"]} */
const projectConfig = {
    jwtSecret: process.env.JWT_SECRET,
    cookieSecret: process.env.COOKIE_SECRET,
    store_cors: STORE_CORS,
    database_url: DATABASE_URL,
    admin_cors: ADMIN_CORS,
    jobs_batch_size: 100,
    worker_mode: WORKER_MODE,
    // Uncomment the following lines to enable REDIS
    redis_url: REDIS_URL,
    http_compression: {
        enabled: true,
        level: 6,
        memLevel: 8,
        threshold: 1024,
    },
    // database_extra: process.env.NODE_ENV !== "development" ? {
    //     ssl: {
    //         rejectUnauthorized: false,
    //     },
    // } : {},
};

/** @type {import('@medusajs/medusa').ConfigModule} */
module.exports = {
    projectConfig,
    plugins,
    modules,
    featureFlags,
};

I figured it might have something to do with railway looking in the wrong directory for static assets so I tried changing index.js to include

app.use(express.static(path.join(__dirname, 'build')));

            app.get('*', (req, res) => {
                res.sendFile(path.join(__dirname, 'build', 'index.html'));
            });

still no luck, so I changed the nixpacks.toml to include

[static]
dir = ['build']

Also no luck.

Can anyone please help me? This problem seems to come and go on its own every now and then, not so much on localdev as much as with deployment.

Here are my network request headers:
Screenshot 2024-04-03 at 4 44 39 AM
Screenshot 2024-04-03 at 4 45 07 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.