on 2023 Sep 21 12:32 PM
Hi,
I have created a node.js application and deployed it to SAP BTP Kyma. The application has a couple of static images in /public/images folder.
The images are loaded and displayed when I start the server locally, but the images are not loaded when I access the server deployed and running in BTP Kyma.
I don't know what I am missing, and hope someone have an idea on what to check.
/Thomas
Request clarification before answering.
Hello Thomas,
If your static images are not loading when you access your Node.js application deployed on SAP BTP Kyma, there could be several reasons for this issue.
const express = require('express');
const app = express();
// Serve static files from the 'public' directory
app.use(express.static('public'));
Thanks,
Lakshmi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.