Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mainnet deploy 1.0.2 #4

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

# Go Stark Me Frontend

### Pre-requisites

- Install Node.js (v20.15.1) using Node Version Manager (NVM)

We recommend using [Node Version Manager (NVM) ](https://github.com/nvm-sh/nvm) to easily manage different versions of Node.js on your system.

### Local configurations


- Rename the `frontend/gostarkme-web/.env.example` file to: `frontend/gostarkme-web/.env`.



- Comment the content of the file `frontend/gostarkme-web/next.config.mjs`. Adding only one element to the ```nextConfig``` object like this:

```
/** @type {import('next').NextConfig} */
const nextConfig = {
/**
* Enable static exports for the App Router.
*
* @see https://nextjs.org/docs/app/building-your-application/deploying/static-exports
*/
// output: "export",

/**
* Set base path. This is the slug of your GitHub repository.
*
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
*/
// basePath: "/gostarkme",

// assetPrefix: 'https://web3wagers.github.io/gostarkme',

/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
*
* @see https://nextjs.org/docs/app/api-reference/components/image#unoptimized
*/
// images: {
// unoptimized: true,
// },

reactStrictMode: false,
};

export default nextConfig;
```


## Local Deployment

### Installing Dependencies

First, install the required packages:

```bash
cd gostarkme/frontend/gostarkme-web

npm install
```
### Running the Application


Once the dependencies are installed, start the development server:


```bash
npm run dev
```




Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.



## Production Deployment


### Installing Dependencies

First, install the required packages:

```bash
cd gostarkme/frontend/gostarkme-web

npm install
```


### Build the Application
To create an optimized production build, run:



```bash
npm run build
```


### Serve the build
Start the production server:
```bash
npm run start
```


Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const nextConfig = {
*
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
*/
basePath: env == "prod" ? "/gostarkme" : "",
basePath: "",

assetPrefix: env == "prod" ? 'https://web3wagers.github.io/gostarkme-frontend/' : "",

Expand Down
Loading