mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-12-22 18:29:48 +01:00
Fix for last PR (#21)
* add module type to package.json * revert to commonjs format * remove index.mjs * remove unneeded import
This commit is contained in:
parent
61930389a0
commit
8d007514a6
2 changed files with 7 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
||||||
import express from "express";
|
const express = require("express");
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
import { join, dirname } from "path";
|
const { join } = require("path");
|
||||||
const __dirname = dirname(new URL(import.meta.url).pathname);
|
|
||||||
|
|
||||||
import compression from "compression";
|
const compression = require("compression");
|
||||||
import expressEJSLayouts from "express-ejs-layouts";
|
const expressEJSLayouts = require("express-ejs-layouts");
|
||||||
|
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
"name": "hyprland-website",
|
"name": "hyprland-website",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"description": "Website for Hyprland - Hyprland - A wayland compositor that doesn't sacrifice on its looks!",
|
"description": "Website for Hyprland - Hyprland - A wayland compositor that doesn't sacrifice on its looks!",
|
||||||
"main": "index.mjs",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_ENV=production node index.mjs",
|
"start": "NODE_ENV=production node index.js",
|
||||||
"dev": "nodemon index.mjs"
|
"dev": "nodemon index.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hyprland"
|
"hyprland"
|
||||||
|
|
Loading…
Reference in a new issue