Skip to content

Instantly share code, notes, and snippets.

@SonPatrick
Forked from 3mrdev/app.js
Created April 21, 2023 08:57
Show Gist options
  • Save SonPatrick/c07aa39d79f16c1fd2c81d25eb03330d to your computer and use it in GitHub Desktop.
Save SonPatrick/c07aa39d79f16c1fd2c81d25eb03330d to your computer and use it in GitHub Desktop.
Deploy Flutter Web App in a SharedHosting using NodeJs
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var app = express();
app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public-flutter')));
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment