mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
Compare commits
No commits in common. "a553fc9ff7eac15b58c17fd7d85701b974f7a58f" and "06cf7050a995a646cd2211416ce2509be0f9dd6c" have entirely different histories.
a553fc9ff7
...
06cf7050a9
4 changed files with 26 additions and 76 deletions
|
@ -13,8 +13,8 @@ steps:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
environment:
|
environment:
|
||||||
NEXT_PUBLIC_API_HOST: https://vault48.org/api/
|
NEXT_PUBLIC_API_HOST: https://pig.vault48.org/
|
||||||
NEXT_PUBLIC_REMOTE_CURRENT: https://vault48.org/static/
|
NEXT_PUBLIC_REMOTE_CURRENT: https://pig.vault48.org/static/
|
||||||
NEXT_PUBLIC_PUBLIC_HOST: https://vault48.org/
|
NEXT_PUBLIC_PUBLIC_HOST: https://vault48.org/
|
||||||
NEXT_PUBLIC_BOT_USERNAME: vault48bot
|
NEXT_PUBLIC_BOT_USERNAME: vault48bot
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# NEXT_PUBLIC_REMOTE_CURRENT=https://pig.staging.vault48.org/static/
|
# NEXT_PUBLIC_REMOTE_CURRENT=https://pig.staging.vault48.org/static/
|
||||||
# NEXT_PUBLIC_API_HOST=http://localhost:7777/
|
# NEXT_PUBLIC_API_HOST=http://localhost:7777/
|
||||||
# NEXT_PUBLIC_REMOTE_CURRENT=http://localhost:7777/static/
|
# NEXT_PUBLIC_REMOTE_CURRENT=http://localhost:7777/static/
|
||||||
NEXT_PUBLIC_API_HOST=https://vault48.org/api/
|
NEXT_PUBLIC_API_HOST=https://pig.vault48.org/
|
||||||
NEXT_PUBLIC_REMOTE_CURRENT=https://vault48.org/static/
|
NEXT_PUBLIC_REMOTE_CURRENT=https://pig.vault48.org/static/
|
||||||
NEXT_PUBLIC_BOT_USERNAME=vault48testbot
|
NEXT_PUBLIC_BOT_USERNAME=vault48testbot
|
|
@ -1,46 +0,0 @@
|
||||||
name: Build & Publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
push_to_registry:
|
|
||||||
name: Build & Publish
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
contents: read
|
|
||||||
attestations: write
|
|
||||||
id-token: write
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Registry Login
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.vault48.org
|
|
||||||
username: ${{ secrets.username }}
|
|
||||||
password: ${{ secrets.password }}
|
|
||||||
|
|
||||||
- name: Extract docker metadata
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
|
||||||
with:
|
|
||||||
images: git.vault48.org/${{ env.GITHUB_REPOSITORY }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
id: push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./docker/nextjs/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
build-args: |
|
|
||||||
NEXT_PUBLIC_API_HOST=https://vault48.org/api/
|
|
||||||
NEXT_PUBLIC_REMOTE_CURRENT=https://vault48.org/static/
|
|
||||||
NEXT_PUBLIC_PUBLIC_HOST=https://vault48.org/
|
|
||||||
NEXT_PUBLIC_BOT_USERNAME=vault48bot
|
|
|
@ -2,10 +2,7 @@
|
||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
});
|
});
|
||||||
const withTM = require('next-transpile-modules')([
|
const withTM = require('next-transpile-modules')(['ramda', '@v9v/ts-react-telegram-login']);
|
||||||
'ramda',
|
|
||||||
'@v9v/ts-react-telegram-login',
|
|
||||||
]);
|
|
||||||
|
|
||||||
module.exports = withBundleAnalyzer(
|
module.exports = withBundleAnalyzer(
|
||||||
withTM({
|
withTM({
|
||||||
|
@ -13,14 +10,13 @@ module.exports = withBundleAnalyzer(
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
// everything except 'post' is for backwards compatibility here
|
source: '/post:id',
|
||||||
source: '/(post|photo|blog|song|video|cell):id',
|
|
||||||
destination: '/node/:id',
|
destination: '/node/:id',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/~:username',
|
source: '/~:username',
|
||||||
destination: '/profile/:username',
|
destination: '/profile/:username',
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -30,8 +26,8 @@ module.exports = withBundleAnalyzer(
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
hostname: 'vault48.org',
|
hostname: '*.vault48.org',
|
||||||
pathname: '/static/**',
|
pathname: '/**',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
|
@ -45,5 +41,5 @@ module.exports = withBundleAnalyzer(
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}),
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue