Questions tagged [static-html]

77 questions
1
vote
1 answer

Serve Static Files from Node.js with POST data

I run a node.js server, and use node-static to serve static HTML files. var nodeStatic = require('node-static'); var file = new nodeStatic.Server('./public'); .. file.serveFile('/file.html', 500, {}, request, response); What i would like to do is,…
evsc
  • 260
  • 3
  • 10
1
vote
0 answers

NextJS seemingly ignored my homepage when I build, (and mysteriously, one other page). It's "remembering" it's very first iteration?

In local development, everything is fine. In production, my homepage "remembers" its prehistoric "first version"! along with one other page! I don't even know how it's getting information on how to look like. It's old CSS. old layout. old content.…
1
vote
0 answers

CSS Pseudo Selector :active in React and Static Html displays differently on Iphone chrome browser

I've recently come across this issue that pseudo selector :active doesn't display the same on React and Static page. this is what I apply css code exactly the same I don't even understand why this selector renders on mobile differently according to…
1
vote
1 answer

Prevent initial page jump when showing an element based on cookie value

I have a page of static HTML which, on load and via jQuery, checks if a permanent cookie ("hideAnnouncements") exists. If this cookie does NOT exist then it loads an external HTML file (containing a bullet list of announcements) into a div using…
1
vote
2 answers

Routing to static HTML using React and AWS-Amplify

I have built a website using React and am now using AWS-Amplify to host it. I am trying to setup Routes that redirect to static HTML files which are located in the /public directory. Everything works just fine when I test locally, but the Routes…
brent
  • 131
  • 12
1
vote
1 answer

Client-side initialization in Next.js with Static HTML Export

We're developing a Next.js app using react-i18next for localization. We're using next export (Static HTML Export). The react-i18next library requires initialization code, and I'm not sure where to call that. (We're not using next-i18next, as that…
TrueWill
  • 25,132
  • 10
  • 101
  • 150
1
vote
1 answer

Can a React app link to a static html on the public folder?

I'm creating a react app with react-router to change pages but I have a static html which contains a Unity webgl. I'm not able to embed the webgl on the react app or not sure if it's possible but I'm sure that the Unity webgl works on a standalone…
Nats E
  • 53
  • 2
  • 6
1
vote
0 answers

Generate static HTML from full dynamically generated page, .NET Core 3.1

I have a simple .NET Core 3.1 app that generates pages, as web apps usually do. The dynamic website looks great, but I need to save the output as full static HTML pages to be saved somewhere. Is there an easy way to do this within the web app code…
kearly
  • 67
  • 7
1
vote
1 answer

How to temporarily replace Drupal with static HTML pages?

I'm a JavaScript dev with no Drupal experience. I'm working with a church to redesign their Drupal site after their dev moved on without leaving any notes/documentation/etc. In the meantime, I'd like to put up a few static html pages in place of the…
Brian Zelip
  • 2,909
  • 4
  • 33
  • 45
1
vote
1 answer

How to Serve Static HTML to the Search Engine User-Agents in Dynamic Rendering?

I am trying to create a Dynamic Rendering Example with "Prerender.cloud" service. I took an prerendered version of my URL. I may put the code structure here but it is not the problem. a) I purified the CSS. b) I deleted all unnecessary codes and…
1
vote
1 answer

Official nginx docker gives 403 Forbidden when serving static files

I'm using nginx docker image to serve a simple index.html file. As mentioned in the quick guid, I have a Dockerfile containing: FROM nginx COPY www-root-dir /usr/share/nginx/html (www-root-dir just contains an index.html file) But when I run this…
Emran
  • 544
  • 7
  • 26
1
vote
1 answer

How do I import static assets in a static html page with webpack?

Problem Context I have webpack working for compiling my typescript into javascript. Automatic reloading works when I change my typescript code. However, webpack is not watching my static html file. . ├── dist │ ├── index.html │ └── style.css ├──…
MrZoraman
  • 421
  • 4
  • 13
1
vote
2 answers

Openshift Apache HTTP Server without Git-Repo

I am about to create a "Test-Dashboard" for our automatic tests. The test result of one day consists of multiple static html files. These files will be updated daily and the old files will be moved in a folder named with the current date. The files…
raphael_mav
  • 580
  • 6
  • 23
1
vote
1 answer

Loading Hugo to GitHub Pages

I am trying to upload a Hugo Theme to a Github pages and cannot figure out where I am going wrong. I have tried multiple different sites and methods and coming up blank. This is there I started…
chris clifton
  • 133
  • 1
  • 13
1
vote
1 answer

Call express (node.js) APIs from static HTML page on host

I have a static HTML page, hello.html. If I double click hello.html, it opens up in my default browser, and displays the HTML properly, but in the browser's search bar, instead of having a URL with a hostname, what displays is the local filepath for…
ffConundrums
  • 765
  • 9
  • 24