dude363635 / google

let‘s build your own website in vercel!

Home Page:https://gs.colnago.icu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vercel Website

Quick start

1、Fork this repository

2、Please rewrite the target host name in api/proxy.js to "google.com" by default.

const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = (req, res) => {
  let target = "https://www.google.com/"; //your website url
  //   if (
  //     req.url.startsWith("/api") ||
  //     req.url.startsWith("/auth") ||
  //     req.url.startsWith("/banner") ||
  //     req.url.startsWith("/CollegeTask")
  //   ) {
  //     target = "http://106.15.2.32:6969";
  //   }

  createProxyMiddleware({
    target,
    changeOrigin: true,
    pathRewrite: {
      // rewrite request path `/backend`
      //  /backend/user/login => http://google.com/user/login
      //   "^/backend/": "/",
    },
  })(req, res);
};

3、Registering your vercel account vercel
4、To bind your GitHub account in Vercel's settings, please follow the steps below.

bind github account

5、To configure your Vercel repository, please follow the instructions below.

To import a Git repository, follow these steps: Overview => Add New... => Project.

import git repository

Click the "Continue with GitHub" button.

looking your own rep

To import your forked repository, such as Google, please follow the steps below.

Click Deploy

The deploy process is currently underway. Please wait for it to complete.

Deploy success

The domain vercel for you

Vercel Domain

6、Register your own domain name and complete the real-name registration process in accordance with the real-name registration rules of the domain name registrar.

No more elaboration, if you encounter problems, you can submit an issue, and some netizens will answer your questions with each other.

7、To configure your own domain and cname

Manage your domain name

The TXT record needs to fill in the content provided by vercel above, and the cname is the same

8、Enjoy it

https://google.{{mydomain}}.com

9、Modify the default browser engine for your own service

Setting the default item

Chrome prompts that the website is not secure.

To disable Chrome security protection in Chrome browser settings.

Change which data center your service is in

This affects your ip address when you use google search

About

let‘s build your own website in vercel!

https://gs.colnago.icu

License:MIT License


Languages

Language:JavaScript 55.8%Language:CSS 44.2%