Hosting

Netlify

Netlify: Build, deploy, and manage modern web projects.

Now

# Install from https://github.com/zeit/now-cli/releases
yarn add global next@canary
now login
# Alias URL
# - Create a CNAME now.datalab.datalayer.io to alias.zeit.co.
# - Add the TXT returned record.
now alias https://datalab-now-15r2gzhf5.now.sh now.datalab.datalayer.io
# Deploy.
# Append _src to see logs, input and outputs.
now

Node.js example.

mkdir test1 && cd test1
cat <<EOF > index.js
module.exports = (req, res) => {
  res.end('Hello from Node.js on Now 2.0!');
};
EOF
cat <<EOF > now.json
{
    "version": 2,
    "name": "nodejs",
    "builds": [
        { "src": "*.js", "use": "@now/node" }
    ]
}
EOF
now
    "routes": [
        { "src": "/(.*)", "dest": "/index.html" }
    ]

React.js example.

npx create-react-app test1 && cd test1
cat <<EOF > now.json
{
    "version": 2,
    "name": "test1",
    "builds": [
        { "src": "package.json", "use": "@now/static-build" }
    ],
    "routes": [
        {"src": "^/static/(.*)", "dest": "/static/$1"},
        {"src": ".*", "dest": "/index.html"}
    ]
}
EOF
now

results matching ""

    No results matching ""